Class: Rexpense::Configuration
- Inherits:
-
Object
- Object
- Rexpense::Configuration
- Defined in:
- lib/rexpense/configuration.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
-
#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
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/rexpense/configuration.rb', line 7 def initialize @url = 'https://app.rexpense.com' @version = 'v1' @user_agent = "Rexpense Ruby Client v#{Rexpense::VERSION}" end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/rexpense/configuration.rb', line 5 def url @url 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 |