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.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#scheme ⇒ Object
readonly
Returns the value of attribute scheme.
-
#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 |
#host ⇒ Object (readonly)
Returns the value of attribute host.
5 6 7 |
# File 'lib/nova/configuration.rb', line 5 def host @host end |
#scheme ⇒ Object (readonly)
Returns the value of attribute scheme.
6 7 8 |
# File 'lib/nova/configuration.rb', line 6 def scheme @scheme end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
4 5 6 |
# File 'lib/nova/configuration.rb', line 4 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
12 13 14 |
# File 'lib/nova/configuration.rb', line 12 def debug? [true, 'true'].include?(debug) end |
#use_staging? ⇒ Boolean
8 9 10 |
# File 'lib/nova/configuration.rb', line 8 def use_staging? [true, 'true'].include?(use_staging) end |