class Emarsys::EmailLaunchStatus
Internal helper class for valid email launch status. Emarsys
has no implementation for this data resource.
Constants
- CODES
Public Class Methods
collection()
click to toggle source
List email launch status codes
@return [Hash] List of email launch status @example
Emarsys::EmailLaunchStatus.collection
# File lib/emarsys/data_objects/email_launch_status.rb, line 23 def collection CODES end
resource(id)
click to toggle source
Get a specific email launch status
@param [Integer, String] id of the code @return [Hash] Key-Value-Pair of the launch code @example
Emarsys::EmailLaunchStatus.resource('1')
# File lib/emarsys/data_objects/email_launch_status.rb, line 33 def resource(id) CODES.select{|hash| hash.has_key?(id.to_s)}[0] end