Sha256: 2ba2f0ba0239bcceba3093a8894af144ca8adb3a0704673cb7bc52429ca63493

Contents?: true

Size: 281 Bytes

Versions: 5

Compression:

Stored size: 281 Bytes

Contents

module GTFS
  class Realtime
    class Shape < GTFS::Realtime::Model
      dataset_module do
        def ordered_by_sequence
          order(:sequence)
        end
      end

      # order results by sequence by default
      set_dataset(self.ordered_by_sequence)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gtfs-realtime-0.3.0 lib/gtfs/realtime/shape.rb
gtfs-realtime-0.2.3 lib/gtfs/realtime/shape.rb
gtfs-realtime-0.2.2 lib/gtfs/realtime/shape.rb
gtfs-realtime-0.2.1 lib/gtfs/realtime/shape.rb
gtfs-realtime-0.2.0 lib/gtfs/realtime/shape.rb