Class: EvoleapLicensing::Configuration
- Inherits:
-
Object
- Object
- EvoleapLicensing::Configuration
- Defined in:
- lib/evoleap_licensing/configuration.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#host ⇒ Object
Returns the value of attribute host.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
- #api_base_url ⇒ Object
-
#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/evoleap_licensing/configuration.rb', line 7 def initialize @host = "https://elm.evoleap.com" @timeout = 60 @api_version = "v3.4" @user_agent = "evoleap-licensing-ruby/#{EvoleapLicensing::VERSION}" end |
Instance Attribute Details
#api_version ⇒ Object
Returns the value of attribute api_version.
5 6 7 |
# File 'lib/evoleap_licensing/configuration.rb', line 5 def api_version @api_version end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/evoleap_licensing/configuration.rb', line 5 def host @host end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/evoleap_licensing/configuration.rb', line 5 def timeout @timeout end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
5 6 7 |
# File 'lib/evoleap_licensing/configuration.rb', line 5 def user_agent @user_agent end |
Instance Method Details
#api_base_url ⇒ Object
14 15 16 |
# File 'lib/evoleap_licensing/configuration.rb', line 14 def api_base_url "#{@host}/api/#{@api_version}/auth" end |