Class: Mail::Chimpster
- Inherits:
-
Object
- Object
- Mail::Chimpster
- Defined in:
- lib/chimpster/handlers/mail.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
-
#uakari ⇒ Object
Returns the value of attribute uakari.
Instance Method Summary collapse
- #deliver!(mail) ⇒ Object
-
#initialize(values) ⇒ Chimpster
constructor
A new instance of Chimpster.
Constructor Details
#initialize(values) ⇒ Chimpster
7 8 9 10 |
# File 'lib/chimpster/handlers/mail.rb', line 7 def initialize(values) self.settings = { :api_key => nil, :to=> nil, :from=>nil}.merge(values) self.uakari = Uakari.new(self.settings[:api_key]) end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
5 6 7 |
# File 'lib/chimpster/handlers/mail.rb', line 5 def settings @settings end |
#uakari ⇒ Object
Returns the value of attribute uakari.
5 6 7 |
# File 'lib/chimpster/handlers/mail.rb', line 5 def uakari @uakari end |