Class: LoyverseApi::Configuration
- Inherits:
-
Object
- Object
- LoyverseApi::Configuration
- Defined in:
- lib/loyverse_api/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#api_base_url ⇒ Object
(also: #base_url)
Returns the value of attribute api_base_url.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#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.
6 7 8 9 10 11 |
# File 'lib/loyverse_api/configuration.rb', line 6 def initialize @api_base_url = "https://api.loyverse.com/v1.0/" @timeout = 30 @open_timeout = 10 @access_token = nil end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/loyverse_api/configuration.rb', line 3 def access_token @access_token end |
#api_base_url ⇒ Object Also known as: base_url
Returns the value of attribute api_base_url.
3 4 5 |
# File 'lib/loyverse_api/configuration.rb', line 3 def api_base_url @api_base_url end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
3 4 5 |
# File 'lib/loyverse_api/configuration.rb', line 3 def open_timeout @open_timeout end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/loyverse_api/configuration.rb', line 3 def timeout @timeout end |