Class: EmailMarketing::Admin::Delivery
- Inherits:
-
AdminsController
- Object
- Admin::AdminsController
- AdminsController
- EmailMarketing::Admin::Delivery
- Includes:
- ActiveModel::Model
- Defined in:
- app/controllers/email_marketing/admin/marketing_deliveries_controller.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#from ⇒ Object
Returns the value of attribute from.
-
#gun ⇒ Object
Returns the value of attribute gun.
-
#gun_name ⇒ Object
Returns the value of attribute gun_name.
-
#list_id ⇒ Object
Returns the value of attribute list_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#template_id ⇒ Object
Returns the value of attribute template_id.
Instance Method Summary collapse
Methods inherited from AdminsController
Instance Attribute Details
#domain ⇒ Object
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 |
#from ⇒ Object
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 |
#gun ⇒ Object
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_name ⇒ Object
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_id ⇒ Object
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 |
#name ⇒ Object
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_id ⇒ Object
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
#submit ⇒ Object
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 |