Class: Hubspot::Mailer::Delivery

Inherits:
Object
  • Object
show all
Defined in:
lib/hubspot/mailer/delivery.rb

Constant Summary collapse

DEFAULTS =
{}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values) ⇒ Delivery

Returns a new instance of Delivery.



8
9
10
# File 'lib/hubspot/mailer/delivery.rb', line 8

def initialize(values)
  self.settings = DEFAULTS.merge(values)
end

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



4
5
6
# File 'lib/hubspot/mailer/delivery.rb', line 4

def settings
  @settings
end

Instance Method Details

#deliver!(mail) ⇒ Object



12
13
14
# File 'lib/hubspot/mailer/delivery.rb', line 12

def deliver!(mail)
  Hubspot::Mailer.single_send(mail)
end