Class: OnebusawaySDK::Resources::Config
- Inherits:
-
Object
- Object
- OnebusawaySDK::Resources::Config
- Defined in:
- lib/onebusaway_sdk/resources/config.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Config
constructor
private
A new instance of Config.
-
#retrieve(request_options: {}) ⇒ OnebusawaySDK::Models::ConfigRetrieveResponse
config.
Constructor Details
#initialize(client:) ⇒ Config
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Config.
27 28 29 |
# File 'lib/onebusaway_sdk/resources/config.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(request_options: {}) ⇒ OnebusawaySDK::Models::ConfigRetrieveResponse
config
15 16 17 18 19 20 21 22 |
# File 'lib/onebusaway_sdk/resources/config.rb', line 15 def retrieve(params = {}) @client.request( method: :get, path: "api/where/config.json", model: OnebusawaySDK::Models::ConfigRetrieveResponse, options: params[:request_options] ) end |