Class: PostalCodesRubyClient::Configuration
- Inherits:
-
Object
- Object
- PostalCodesRubyClient::Configuration
- Defined in:
- lib/postal_codes_ruby_client/configuration.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/postal_codes_ruby_client/configuration.rb', line 7 def initialize @base_url = 'http://localhost:3000' @api_token = nil @timeout = 30 end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
5 6 7 |
# File 'lib/postal_codes_ruby_client/configuration.rb', line 5 def api_token @api_token end |
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/postal_codes_ruby_client/configuration.rb', line 5 def base_url @base_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/postal_codes_ruby_client/configuration.rb', line 5 def timeout @timeout end |