Class: Viglink::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key: ENV['VIGLINK_API_KEY'], secret_key: ENV['VIGLINK_SECRET_KEY'], debug_output: false) ⇒ Configuration

Returns a new instance of Configuration.



23
24
25
26
27
28
29
# File 'lib/viglink/configuration.rb', line 23

def initialize(api_key: ENV['VIGLINK_API_KEY'],
               secret_key: ENV['VIGLINK_SECRET_KEY'],
               debug_output: false)
  @api_key = api_key
  @secret_key = secret_key
  @debug_output = debug_output
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



21
22
23
# File 'lib/viglink/configuration.rb', line 21

def api_key
  @api_key
end

#debug_outputObject

Returns the value of attribute debug_output.



21
22
23
# File 'lib/viglink/configuration.rb', line 21

def debug_output
  @debug_output
end

#secret_keyObject

Returns the value of attribute secret_key.



21
22
23
# File 'lib/viglink/configuration.rb', line 21

def secret_key
  @secret_key
end