Class: EmailMarketing::Admin::Delivery

Inherits:
AdminsController
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/controllers/email_marketing/admin/marketing_deliveries_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AdminsController

#marketing_connection

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



50
51
52
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 50

def domain
  @domain
end

#fromObject

Returns the value of attribute from.



50
51
52
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 50

def from
  @from
end

#gunObject

Returns the value of attribute gun.



50
51
52
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 50

def gun
  @gun
end

#gun_nameObject

Returns the value of attribute gun_name.



50
51
52
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 50

def gun_name
  @gun_name
end

#list_idObject

Returns the value of attribute list_id.



50
51
52
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 50

def list_id
  @list_id
end

#nameObject

Returns the value of attribute name.



50
51
52
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 50

def name
  @name
end

#template_idObject

Returns the value of attribute template_id.



50
51
52
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 50

def template_id
  @template_id
end

Instance Method Details

#submitObject



53
54
55
56
57
# File 'app/controllers/email_marketing/admin/marketing_deliveries_controller.rb', line 53

def submit
  json = JSON(self.to_json)
  parameters =  {delivery: json}
  response = marketing_connection.deliveries.create(parameters)
end