Class: Rexpense::Configuration
- Inherits:
-
Object
- Object
- Rexpense::Configuration
- Defined in:
- lib/rexpense/configuration.rb
Instance Attribute Summary collapse
-
#api_mode ⇒ Object
Returns the value of attribute api_mode.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
7 8 9 10 11 |
# File 'lib/rexpense/configuration.rb', line 7 def initialize @api_mode = 'production' @version = 'v1' @user_agent = "Rexpense Ruby Client v#{Rexpense::VERSION}" end |
Instance Attribute Details
#api_mode ⇒ Object
Returns the value of attribute api_mode.
5 6 7 |
# File 'lib/rexpense/configuration.rb', line 5 def api_mode @api_mode end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
5 6 7 |
# File 'lib/rexpense/configuration.rb', line 5 def user_agent @user_agent end |
#version ⇒ Object
Returns the value of attribute version.
5 6 7 |
# File 'lib/rexpense/configuration.rb', line 5 def version @version end |