Class: Selligent::Configuration
- Inherits:
-
Object
- Object
- Selligent::Configuration
- Defined in:
- lib/selligent/configuration.rb
Overview
Configuration options for the Selligent Client.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#host ⇒ Object
Returns the value of attribute host.
-
#organization ⇒ Object
Returns the value of attribute organization.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
- #inspect ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/selligent/configuration.rb', line 8 def initialize( = {}) @host = [:host] @api_key = [:api_key] @api_secret = [:api_key] @organization = [:organization] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/selligent/configuration.rb', line 6 def api_key @api_key end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
6 7 8 |
# File 'lib/selligent/configuration.rb', line 6 def api_secret @api_secret end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/selligent/configuration.rb', line 6 def host @host end |
#organization ⇒ Object
Returns the value of attribute organization.
6 7 8 |
# File 'lib/selligent/configuration.rb', line 6 def organization @organization end |
Instance Method Details
#inspect ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/selligent/configuration.rb', line 15 def inspect inspected = super inspected.gsub! @api_key, '*******' if @api_key inspected.gsub! @api_secret, '*******' if @api_secret inspected end |