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