Class: QuestBack::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_proxyObject

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_levelObject

Returns the value of attribute log_level.



9
10
11
# File 'lib/quest_back/configuration.rb', line 9

def log_level
  @log_level
end

#passwordObject

Returns the value of attribute password.



9
10
11
# File 'lib/quest_back/configuration.rb', line 9

def password
  @password
end

#soap_namespaceObject

Returns the value of attribute soap_namespace.



9
10
11
# File 'lib/quest_back/configuration.rb', line 9

def soap_namespace
  @soap_namespace
end

#usernameObject

Returns the value of attribute username.



9
10
11
# File 'lib/quest_back/configuration.rb', line 9

def username
  @username
end

#wsdlObject

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