module Markety::Command::GetCustomObject
Public Instance Methods
convert_keys(keys)
click to toggle source
# File lib/markety/command/get_custom_object.rb, line 10 def convert_keys(keys) keys.map do |key, value| {"attrName" => key, "attrValue" => value} end end
get_custom_object_by_keys(object_type_name, keys)
click to toggle source
keys can be a hash or an array of hashes
# File lib/markety/command/get_custom_object.rb, line 6 def get_custom_object_by_keys(object_type_name, keys) send_request(:get_custom_objects, {"objTypeName" => object_type_name, "customObjKeyList" => {"attribute" => convert_keys(keys)}}) end