Class: CleverReach::Configuration
- Inherits:
-
Object
- Object
- CleverReach::Configuration
- Includes:
- Singleton
- Defined in:
- lib/clever_reach/configuration.rb
Constant Summary collapse
- @@defaults =
{ wsdl_url: 'http://api.cleverreach.com/soap/interface_v5.1.php?wsdl' }
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#list_id ⇒ Object
Returns the value of attribute list_id.
-
#wsdl_url ⇒ Object
Returns the value of attribute wsdl_url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 |
# File 'lib/clever_reach/configuration.rb', line 17 def initialize @@defaults.each { |k,v| send("#{k}=", v) } end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/clever_reach/configuration.rb', line 11 def api_key @api_key end |
#list_id ⇒ Object
Returns the value of attribute list_id.
11 12 13 |
# File 'lib/clever_reach/configuration.rb', line 11 def list_id @list_id end |
#wsdl_url ⇒ Object
Returns the value of attribute wsdl_url.
11 12 13 |
# File 'lib/clever_reach/configuration.rb', line 11 def wsdl_url @wsdl_url end |
Class Method Details
.defaults ⇒ Object
13 14 15 |
# File 'lib/clever_reach/configuration.rb', line 13 def self.defaults @@defaults end |