Class: QuestBack::Configuration
- Inherits:
-
Object
- Object
- QuestBack::Configuration
- Defined in:
- lib/quest_back/configuration.rb
Constant Summary collapse
- API_DEFAULTS =
{ wsdl: 'https://integration.questback.com/integration.svc?wsdl', soap_namespace: 'https://integration.questback.com/2011/03', log_level: :debug }
Instance Attribute Summary collapse
-
#http_proxy ⇒ Object
Returns the value of attribute http_proxy.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#password ⇒ Object
Returns the value of attribute password.
-
#soap_namespace ⇒ Object
Returns the value of attribute soap_namespace.
-
#username ⇒ Object
Returns the value of attribute username.
-
#wsdl ⇒ Object
Returns the value of attribute wsdl.
Instance Method Summary collapse
- #[](name) ⇒ Object
- #[]=(name, value) ⇒ Object
-
#initialize(attributes = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(attributes = {}) ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 |
# File 'lib/quest_back/configuration.rb', line 11 def initialize(attributes = {}) assign API_DEFAULTS assign attributes end |
Instance Attribute Details
#http_proxy ⇒ Object
Returns the value of attribute http_proxy.
9 10 11 |
# File 'lib/quest_back/configuration.rb', line 9 def http_proxy @http_proxy end |
#log_level ⇒ Object
Returns the value of attribute log_level.
9 10 11 |
# File 'lib/quest_back/configuration.rb', line 9 def log_level @log_level end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/quest_back/configuration.rb', line 9 def password @password end |
#soap_namespace ⇒ Object
Returns the value of attribute soap_namespace.
9 10 11 |
# File 'lib/quest_back/configuration.rb', line 9 def soap_namespace @soap_namespace end |
#username ⇒ Object
Returns the value of attribute username.
9 10 11 |
# File 'lib/quest_back/configuration.rb', line 9 def username @username end |
#wsdl ⇒ Object
Returns the value of attribute wsdl.
9 10 11 |
# File 'lib/quest_back/configuration.rb', line 9 def wsdl @wsdl end |
Instance Method Details
#[](name) ⇒ Object
20 21 22 |
# File 'lib/quest_back/configuration.rb', line 20 def [](name) public_send name end |
#[]=(name, value) ⇒ Object
16 17 18 |
# File 'lib/quest_back/configuration.rb', line 16 def []=(name, value) public_send "#{name}=", value end |