Class: Emarsys::EmailLaunchStatus
- Inherits:
-
DataObject
- Object
- DataObject
- Emarsys::EmailLaunchStatus
- Defined in:
- lib/emarsys/data_objects/email_launch_status.rb
Overview
Internal helper class for valid email launch status. Emarsys has no implementation for this data resource.
Constant Summary collapse
- CODES =
[ {'0' => 'Not launched'}, {'1' => 'Launch called via API, launching in Progress'}, {'2' => 'Email launched or scheduled for future launch'}, {'10' => 'Error (details in api_error)'} ]
Class Method Summary collapse
-
.collection ⇒ Hash
List email launch status codes.
-
.resource(id) ⇒ Hash
Get a specific email launch status.
Methods inherited from DataObject
delete, get, parameterize_params, post, put, #request
Class Method Details
.collection ⇒ Hash
List email launch status codes
22 23 24 |
# File 'lib/emarsys/data_objects/email_launch_status.rb', line 22 def collection CODES end |
.resource(id) ⇒ Hash
Get a specific email launch status
32 33 34 |
# File 'lib/emarsys/data_objects/email_launch_status.rb', line 32 def resource(id) CODES.select{|hash| hash.has_key?(id.to_s)}[0] end |