Class: Zm::Client::ResourcesBuilder

Inherits:
Base::ObjectsBuilder show all
Defined in:
lib/zm/client/resource/resources_builder.rb

Overview

class factory [resources]

Instance Method Summary collapse

Methods inherited from Base::ObjectsBuilder

#ids

Constructor Details

#initialize(parent, json) ⇒ ResourcesBuilder

Returns a new instance of ResourcesBuilder.



7
8
9
10
# File 'lib/zm/client/resource/resources_builder.rb', line 7

def initialize(parent, json)
  super(parent, json)
  @json_item_key = :calresource
end

Instance Method Details

#makeObject



12
13
14
15
16
17
18
# File 'lib/zm/client/resource/resources_builder.rb', line 12

def make
  return [] if json_items.nil?

  json_items.map do |entry|
    ResourceJsnsInitializer.create(@parent, entry)
  end
end