Class: Purest::Configuration
- Inherits:
-
Object
- Object
- Purest::Configuration
- Defined in:
- lib/purest/configuration.rb
Overview
Methods for configuring Purest
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#options ⇒ Object
Returns the value of attribute options.
-
#password ⇒ Object
Returns the value of attribute password.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(api_version = '1.11', url = nil, username = nil, password = nil, options = {}) ⇒ Configuration
constructor
Override defaults for configuration.
Constructor Details
#initialize(api_version = '1.11', url = nil, username = nil, password = nil, options = {}) ⇒ Configuration
Override defaults for configuration
14 15 16 17 18 19 20 |
# File 'lib/purest/configuration.rb', line 14 def initialize(api_version = '1.11', url = nil, username = nil, password = nil, = {}) @api_version = api_version @url = url @username = username @password = password = end |
Instance Attribute Details
#api_version ⇒ Object
Returns the value of attribute api_version.
6 7 8 |
# File 'lib/purest/configuration.rb', line 6 def api_version @api_version end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/purest/configuration.rb', line 6 def end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/purest/configuration.rb', line 6 def password @password end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/purest/configuration.rb', line 6 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
6 7 8 |
# File 'lib/purest/configuration.rb', line 6 def username @username end |