Class: Nova::API::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/nova/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



4
5
6
# File 'lib/nova/configuration.rb', line 4

def api_key
  @api_key
end

#debugObject

Returns the value of attribute debug.



4
5
6
# File 'lib/nova/configuration.rb', line 4

def debug
  @debug
end

#subdomainObject

Returns the value of attribute subdomain.



5
6
7
# File 'lib/nova/configuration.rb', line 5

def subdomain
  @subdomain
end

#use_stagingObject

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/nova/configuration.rb', line 17

def debug?
  [true, 'true'].include?(debug)
end

#use_staging?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/nova/configuration.rb', line 13

def use_staging?
  [true, 'true'].include?(use_staging)
end