Class: Nova::API::Configuration
- Inherits:
-
Object
- Object
- Nova::API::Configuration
- Defined in:
- lib/nova/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#use_staging ⇒ Object
Returns the value of attribute use_staging.
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/nova/configuration.rb', line 4 def api_key @api_key end |
#debug ⇒ Object
Returns the value of attribute debug.
4 5 6 |
# File 'lib/nova/configuration.rb', line 4 def debug @debug end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
5 6 7 |
# File 'lib/nova/configuration.rb', line 5 def subdomain @subdomain end |
#use_staging ⇒ Object
Returns the value of attribute use_staging.
4 5 6 |
# File 'lib/nova/configuration.rb', line 4 def use_staging @use_staging end |
Instance Method Details
#debug? ⇒ Boolean
17 18 19 |
# File 'lib/nova/configuration.rb', line 17 def debug? [true, 'true'].include?(debug) end |
#use_staging? ⇒ Boolean
13 14 15 |
# File 'lib/nova/configuration.rb', line 13 def use_staging? [true, 'true'].include?(use_staging) end |