Class: Ecommerce::Configuration
- Inherits:
-
Object
- Object
- Ecommerce::Configuration
- Defined in:
- lib/ecommerce/configuration.rb
Instance Attribute Summary collapse
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
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 12 |
# File 'lib/ecommerce/configuration.rb', line 7 def initialize @url = "https://ecommerce.myfreecomm.com.br" @user_agent = "Ecommerce Ruby Client v#{Ecommerce::VERSION}" @token = nil @secret = nil end |
Instance Attribute Details
#secret ⇒ Object
Returns the value of attribute secret.
5 6 7 |
# File 'lib/ecommerce/configuration.rb', line 5 def secret @secret end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/ecommerce/configuration.rb', line 5 def token @token end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/ecommerce/configuration.rb', line 5 def url @url end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
5 6 7 |
# File 'lib/ecommerce/configuration.rb', line 5 def user_agent @user_agent end |