class Stop

Public Class Methods

new(json) click to toggle source
# File lib/stop.rb, line 2
def initialize(json)
        @stop_id = json["stop_id"]
        @stop_name = json["stop_name"]
        @code = json["code"]
        @stop_points = Array.new
        json["stop_points"].each do |stop_point|
                @stop_points << StopPoint.new(stop_point)
        end
end

Public Instance Methods

code() click to toggle source
# File lib/stop.rb, line 20
def code
        @code
end
stop_id() click to toggle source
# File lib/stop.rb, line 12
def stop_id
        @stop_id
end
stop_name() click to toggle source
# File lib/stop.rb, line 16
def stop_name
        @stop_name
end
stop_points() click to toggle source
# File lib/stop.rb, line 24
def stop_points
        @stop_points
end