Class: Zm::Client::AccountsBuilder
- Inherits:
-
Base::ObjectsBuilder
- Object
- Base::ObjectsBuilder
- Zm::Client::AccountsBuilder
- Defined in:
- lib/zm/client/account/accounts_builder.rb
Overview
class factory [accounts]
Instance Method Summary collapse
-
#initialize(parent, json) ⇒ AccountsBuilder
constructor
A new instance of AccountsBuilder.
- #make ⇒ Object
Methods inherited from Base::ObjectsBuilder
Constructor Details
#initialize(parent, json) ⇒ AccountsBuilder
Returns a new instance of AccountsBuilder.
7 8 9 10 |
# File 'lib/zm/client/account/accounts_builder.rb', line 7 def initialize(parent, json) super(parent, json) @json_item_key = :account end |
Instance Method Details
#make ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/zm/client/account/accounts_builder.rb', line 12 def make return [] if json_items.nil? json_items.map do |entry| AccountJsnsInitializer.create(@parent, entry) end end |