Module: Postmates::Configuration
- Included in:
- Client
- Defined in:
- lib/postmates/configuration.rb
Constant Summary collapse
- VALID_CONFIGURATION_KEYS =
[:headers, :api_url, :api_key, :customer_id, :raw_response]
- DEFAULT_API_URL =
'https://api.postmates.com/v1/'
- DEFAULT_HEADERS =
{ accept: 'application/json', user_agent: "postmates gem #{Postmates::Version}" }
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
17 18 19 |
# File 'lib/postmates/configuration.rb', line 17 def configure yield self end |
#reset ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/postmates/configuration.rb', line 21 def reset self.headers = DEFAULT_HEADERS self.api_url = DEFAULT_API_URL self.api_key = nil self.customer_id = nil self.raw_response = false self end |