Class: ConstructorIO::Configuration
- Inherits:
-
Object
- Object
- ConstructorIO::Configuration
- Defined in:
- lib/constructorio/configuration.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#autocomplete_key ⇒ Object
Returns the value of attribute autocomplete_key.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(opts = {}) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/constructorio/configuration.rb', line 5 def initialize(opts = {}) self.api_token = opts[:api_token] self.api_url = opts[:api_url] self.autocomplete_key = opts[:autocomplete_key] end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
3 4 5 |
# File 'lib/constructorio/configuration.rb', line 3 def api_token @api_token end |
#api_url ⇒ Object
Returns the value of attribute api_url.
3 4 5 |
# File 'lib/constructorio/configuration.rb', line 3 def api_url @api_url end |
#autocomplete_key ⇒ Object
Returns the value of attribute autocomplete_key.
3 4 5 |
# File 'lib/constructorio/configuration.rb', line 3 def autocomplete_key @autocomplete_key end |