class Bmtc::TTMC
Attributes
id[R]
name[R]
Public Class Methods
all()
click to toggle source
# File lib/bmtc/ttmc.rb, line 9 def self.all list = JSON.parse Bmtc.get('/passengerinfo/ttmclist').body list.map { |stop| BMTC::TTMC.new(stop) } end
new(options = {})
click to toggle source
# File lib/bmtc/ttmc.rb, line 4 def initialize(options = {}) @id = options['id'] @name = options['ttmcName'] end