Class: Supersaas::Client::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/supersaas-api-client/client.rb

Constant Summary collapse

DEFAULT_HOST =
'https://www.supersaas.com'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



224
225
226
227
228
229
230
# File 'lib/supersaas-api-client/client.rb', line 224

def initialize
  @account_name = ENV.fetch('SSS_API_ACCOUNT_NAME', nil)
  @api_key = ENV.fetch('SSS_API_KEY', nil)
  @host = DEFAULT_HOST
  @dry_run = false
  @verbose = false
end

Instance Attribute Details

#account_nameObject

Returns the value of attribute account_name.



222
223
224
# File 'lib/supersaas-api-client/client.rb', line 222

def 
  @account_name
end

#api_keyObject

Returns the value of attribute api_key.



222
223
224
# File 'lib/supersaas-api-client/client.rb', line 222

def api_key
  @api_key
end

#dry_runObject

Returns the value of attribute dry_run.



222
223
224
# File 'lib/supersaas-api-client/client.rb', line 222

def dry_run
  @dry_run
end

#hostObject

Returns the value of attribute host.



222
223
224
# File 'lib/supersaas-api-client/client.rb', line 222

def host
  @host
end

#verboseObject

Returns the value of attribute verbose.



222
223
224
# File 'lib/supersaas-api-client/client.rb', line 222

def verbose
  @verbose
end