Module: IdbusApi::Endpoint::Stops

Included in:
Client
Defined in:
lib/idbus_api/endpoint/stops.rb

Overview

Methods of the Stops API

Instance Method Summary collapse

Instance Method Details

#stops(options = {}) ⇒ Array<Sawyer::Resource>

Make a call to the GET /stops endpoint

Parameters:

  • options (Hash) (defaults to: {})

    optional options to pass to the request

Returns:

  • (Array<Sawyer::Resource>)


12
13
14
# File 'lib/idbus_api/endpoint/stops.rb', line 12

def stops(options = {})
  paginate("/stops", options).stops
end