Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Fix Line#network_code
Browse files Browse the repository at this point in the history
  • Loading branch information
zog committed Jun 28, 2019
1 parent 5664012 commit 3cc2ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/codifligne/v2/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def lines(params = {})
submode = line.css('TransportSubmode')
params[:transport_submode] = submode.first.content.strip if submode.first

params[:network_code] = line.css('RepresentedByGroupRef').try(:attribute, 'ref').try(:to_s)
params[:network_code] = line.css('RepresentedByGroupRef').try(:first).try(:attribute, 'ref').try(:to_s)

params[:operator_codes] = []
line.css('OperatorRef').each do |operator|
Expand Down
2 changes: 1 addition & 1 deletion lib/codifligne/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Codifligne
VERSION = "0.1.16"
VERSION = "0.1.17"
end

0 comments on commit 3cc2ad6

Please sign in to comment.