Class: Mailosaur::Models::ServerListResult
- Defined in:
- lib/Mailosaur/models/server_list_result.rb
Instance Attribute Summary collapse
-
#items ⇒ Array<Server>
Servers are returned sorted by creation date, with the most recently-created server appearing first.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ServerListResult
constructor
A new instance of ServerListResult.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ ServerListResult
Returns a new instance of ServerListResult.
4 5 6 7 |
# File 'lib/Mailosaur/models/server_list_result.rb', line 4 def initialize(data = {}) @items = [] (data['items'] || []).each do |i| @items << Mailosaur::Models::Server.new(i) end end |
Instance Attribute Details
#items ⇒ Array<Server>
Servers are returned sorted by creation date, with the most recently-created server appearing first.
12 13 14 |
# File 'lib/Mailosaur/models/server_list_result.rb', line 12 def items @items end |