Class: Mailosaur::Models::PreviewEmailClientListResult

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/Mailosaur/models/preview_email_client_list_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_json

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

#itemsArray<PreviewEmailClient>

A list of available email clients.

Returns:

  • (Array<PreviewEmailClient>)

    A list of available email clients with which to generate email previews.



11
12
13
# File 'lib/Mailosaur/models/preview_email_client_list_result.rb', line 11

def items
  @items
end