Class: Supersaas::Client::Configuration
- Inherits:
-
Object
- Object
- Supersaas::Client::Configuration
- Defined in:
- lib/supersaas-api-client/client.rb
Constant Summary collapse
- DEFAULT_HOST =
'https://www.supersaas.com'
Instance Attribute Summary collapse
-
#account_name ⇒ Object
Returns the value of attribute account_name.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#host ⇒ Object
Returns the value of attribute host.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_name ⇒ Object
Returns the value of attribute account_name.
222 223 224 |
# File 'lib/supersaas-api-client/client.rb', line 222 def account_name @account_name end |
#api_key ⇒ Object
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_run ⇒ Object
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 |
#host ⇒ Object
Returns the value of attribute host.
222 223 224 |
# File 'lib/supersaas-api-client/client.rb', line 222 def host @host end |
#verbose ⇒ Object
Returns the value of attribute verbose.
222 223 224 |
# File 'lib/supersaas-api-client/client.rb', line 222 def verbose @verbose end |