Class: Ovh::Configuration
- Inherits:
-
Object
- Object
- Ovh::Configuration
- Defined in:
- lib/ovh/configuration.rb
Instance Attribute Summary collapse
-
#api_host ⇒ Object
Returns the value of attribute api_host.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#application_key ⇒ Object
Returns the value of attribute application_key.
-
#application_secret ⇒ Object
Returns the value of attribute application_secret.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#faraday ⇒ Object
Returns the value of attribute faraday.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #verbose_faraday? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ovh/configuration.rb', line 7 def initialize self.api_host = "https://eu.api.ovh.com" self.api_version = 1.0 self.application_key = nil self.application_secret = nil self.consumer_key = nil self.faraday = { adapter: :net_http, user_agent: "OVH Ruby HTTP Client", verbose: false } end |
Instance Attribute Details
#api_host ⇒ Object
Returns the value of attribute api_host.
3 4 5 |
# File 'lib/ovh/configuration.rb', line 3 def api_host @api_host end |
#api_version ⇒ Object
Returns the value of attribute api_version.
3 4 5 |
# File 'lib/ovh/configuration.rb', line 3 def api_version @api_version end |
#application_key ⇒ Object
Returns the value of attribute application_key.
4 5 6 |
# File 'lib/ovh/configuration.rb', line 4 def application_key @application_key end |
#application_secret ⇒ Object
Returns the value of attribute application_secret.
4 5 6 |
# File 'lib/ovh/configuration.rb', line 4 def application_secret @application_secret end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
4 5 6 |
# File 'lib/ovh/configuration.rb', line 4 def consumer_key @consumer_key end |
#faraday ⇒ Object
Returns the value of attribute faraday.
5 6 7 |
# File 'lib/ovh/configuration.rb', line 5 def faraday @faraday end |
Instance Method Details
#verbose_faraday? ⇒ Boolean
22 23 24 |
# File 'lib/ovh/configuration.rb', line 22 def verbose_faraday? self.faraday.fetch(:verbose, false) end |