Class: Mailosaur::Models::PreviewEmailClientListResult
- Defined in:
- lib/Mailosaur/models/preview_email_client_list_result.rb
Instance Attribute Summary collapse
-
#items ⇒ Array<PreviewEmailClient>
A list of available email clients.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ PreviewEmailClientListResult
constructor
A new instance of PreviewEmailClientListResult.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ PreviewEmailClientListResult
Returns a new instance of PreviewEmailClientListResult.
4 5 6 7 |
# File 'lib/Mailosaur/models/preview_email_client_list_result.rb', line 4 def initialize(data = {}) @items = [] (data['items'] || []).each { |i| @items << Mailosaur::Models::PreviewEmailClient.new(i) } end |
Instance Attribute Details
#items ⇒ Array<PreviewEmailClient>
A list of available email clients.
11 12 13 |
# File 'lib/Mailosaur/models/preview_email_client_list_result.rb', line 11 def items @items end |