class Shape

Public Class Methods

new(json) click to toggle source
# File lib/shape.rb, line 2
def initialize(json)
        @shape_dist_traveled = json["shape_dist_traveled"]
        @shape_pt_lat = json["shape_pt_lat"]
        @shape_pt_lon = json["shape_pt_lon"]
        @shape_pt_sequence = json["shape_pt_sequence"]
        @shape_stop_id = json["shape_stop_id"] if json["shape_stop_id"]
end

Public Instance Methods

shape_dist_traveled() click to toggle source
# File lib/shape.rb, line 10
def shape_dist_traveled
        @shape_dist_traveled
end
shape_pt_lat() click to toggle source
# File lib/shape.rb, line 14
def shape_pt_lat
        @shape_pt_lat
end
shape_pt_lon() click to toggle source
# File lib/shape.rb, line 18
def shape_pt_lon
        @shape_pt_lon
end
shape_pt_sequence() click to toggle source
# File lib/shape.rb, line 22
def shape_pt_sequence
        @shape_pt_sequence
end
shape_stop_id() click to toggle source
# File lib/shape.rb, line 26
def shape_stop_id
        @shape_stop_id
end