Class: Apis::Busses

Inherits:
Object
  • Object
show all
Defined in:
lib/apis/endpoints/bus.rb

Overview

Class to fetch busses

Instance Method Summary collapse

Instance Method Details

#realtime(busses) ⇒ Faraday::Response

Real-time location of busses. Results are only shown for active busses.

Parameters:

  • busses (Array)

    List of requested busses (optional)

Returns:

  • (Faraday::Response)

    Api result.



11
12
13
# File 'lib/apis/endpoints/bus.rb', line 11

def realtime(busses)
  Apis.client.get("/bus/realtime?busses=#{busses.join(',')}")
end