class Route
Public Class Methods
new(json)
click to toggle source
# File lib/route.rb, line 2 def initialize(json) @route_color = json["route_color"] @route_id = json["route_id"] @route_long_name = json["route_long_name"] @route_short_name = json["route_short_name"] @route_text_color = json["route_text_color"] end
Public Instance Methods
route_color()
click to toggle source
# File lib/route.rb, line 10 def route_color @route_color end
route_id()
click to toggle source
# File lib/route.rb, line 14 def route_id @route_id end
route_long_name()
click to toggle source
# File lib/route.rb, line 18 def route_long_name @route_long_name end
route_short_name()
click to toggle source
# File lib/route.rb, line 22 def route_short_name @route_short_name end
route_text_color()
click to toggle source
# File lib/route.rb, line 26 def route_text_color @route_text_color end
to_json(*a)
click to toggle source
# File lib/route.rb, line 30 def to_json(*a) { 'route_color' => @route_color, 'route_id' => @route_id, 'route_long_name' => @route_long_name, 'route_short_name' => @route_short_name, 'route_text_color' => @route_text_color, }.to_json(*a) end