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