aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/chouette/objectid/stif_netex.rb
blob: 19fd42702168cae5d64786ffca66237b1ced62ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Chouette
  module Objectid
    class StifNetex < Chouette::Objectid::Netex

      @@format = Chouette::Objectid::Netex.format

      def initialize(**attributes)
        @provider_id = attributes[:provider_id] ||= 'stif'
        super
      end

      def short_id
        local_id.try(:split, "-").try(:last)
      end
    end
  end
end