Module: Agilix::Buzz::Commands::Manifest

Included in:
Api
Defined in:
lib/agilix/buzz/commands/manifest.rb

Instance Method Summary collapse

Instance Method Details

#put_items(items = []) ⇒ Object



12
13
14
15
16
17
# File 'lib/agilix/buzz/commands/manifest.rb', line 12

def put_items(items = [])
  options = items.map do |item|
    argument_cleaner(required_params: %i( entityid itemid data ), optional_params: %i( ), options: item )
  end
  authenticated_bulk_post cmd: 'putitems', root_node: 'item',  body: options
end

#update_manifest_data(items = []) ⇒ Object



5
6
7
8
9
10
# File 'lib/agilix/buzz/commands/manifest.rb', line 5

def update_manifest_data(items = [])
  options = items.map do |item|
    argument_cleaner(required_params: %i( entityid data ), optional_params: %i( ), options: item )
  end
  authenticated_bulk_post cmd: 'updatemanifestdata', root_node: 'manifest', body: options
end