Class: SamcartAPI::Configuration
- Inherits:
-
Object
- Object
- SamcartAPI::Configuration
- Defined in:
- lib/samcart_api.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
36 37 38 39 |
# File 'lib/samcart_api.rb', line 36 def initialize @api_url = 'https://api.samcart.com' @version = 'v1' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
34 35 36 |
# File 'lib/samcart_api.rb', line 34 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
34 35 36 |
# File 'lib/samcart_api.rb', line 34 def api_url @api_url end |
#version ⇒ Object
Returns the value of attribute version.
34 35 36 |
# File 'lib/samcart_api.rb', line 34 def version @version end |