Class: Zm::Client::Base::ObjectsBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/base/objects_builder.rb

Overview

Abstract Class Builder [object]

Instance Method Summary collapse

Constructor Details

#initialize(parent, json) ⇒ ObjectsBuilder

Returns a new instance of ObjectsBuilder.



8
9
10
11
# File 'lib/zm/client/base/objects_builder.rb', line 8

def initialize(parent, json)
  @parent = parent
  @json = json
end

Instance Method Details

#idsObject



13
14
15
# File 'lib/zm/client/base/objects_builder.rb', line 13

def ids
  @json[:Body][json_key][:hit]&.map { |s| s[:id] } || []
end