Class: SmsMyBus::Schedules

Inherits:
Object
  • Object
show all
Defined in:
lib/sms_my_bus/schedules.rb

Class Method Summary collapse

Class Method Details

.get_arrivals(stop_id) ⇒ Object



3
4
5
6
7
8
# File 'lib/sms_my_bus/schedules.rb', line 3

def self.get_arrivals stop_id
  api_method = 'getarrivals'
  args = { 'stopID' => stop_id }

  SmsMyBus.make_api_request(api_method, args)
end