class Mailosaur::Models::SearchCriteria
Attributes
body[RW]
@return [String] The value to seek within the target email's HTML or text body.
match[RW]
@return [String] If set to ALL (default), then only results that match all specified criteria will be returned. If set to ANY, results that match any of the specified criteria will be returned.
sent_from[RW]
@return [String] The full email address from which the target email was sent.
sent_to[RW]
@return [String] The full email address to which the target email was sent.
subject[RW]
@return [String] The value to seek within the target email's subject line.
Public Class Methods
new(data = {})
click to toggle source
# File lib/Mailosaur/models/search_criteria.rb, line 4 def initialize(data = {}) @sent_from = data['sentFrom'] @sent_to = data['sentTo'] @subject = data['subject'] @body = data['body'] @match = data['match'] || 'ALL' end