Class: Mailgems::DeliveryMethod
- Inherits:
-
Object
- Object
- Mailgems::DeliveryMethod
- Defined in:
- lib/mailgems/delivery_method.rb
Defined Under Namespace
Classes: InvalidOption
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #deliver!(mail) ⇒ Object
-
#initialize(options = {}) ⇒ DeliveryMethod
constructor
A new instance of DeliveryMethod.
Constructor Details
#initialize(options = {}) ⇒ DeliveryMethod
Returns a new instance of DeliveryMethod.
12 13 14 15 16 17 18 19 20 |
# File 'lib/mailgems/delivery_method.rb', line 12 def initialize( = {}) [:host] = "https://www.mailgems.com" [:api_key] ||= Mailgems.configuration.api_key [:sandbox] ||= Mailgems.configuration.sandbox raise InvalidOption, "Api Key is required" if [:api_key].nil? self.settings = end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
10 11 12 |
# File 'lib/mailgems/delivery_method.rb', line 10 def settings @settings end |