Class: Zaikio::Warehouse::Material

Inherits:
Base
  • Object
show all
Defined in:
lib/zaikio/warehouse/material.rb

Overview

Instance Method Summary collapse

Methods inherited from Base

disable_http_methods, readonly!, request

Instance Method Details

#merge(into_material_or_material_id) ⇒ Object



29
30
31
# File 'lib/zaikio/warehouse/material.rb', line 29

def merge(into_material_or_material_id)
  self.class.request(:post, "#{collection_name}/#{id}/merge_into/#{into_material_or_material_id.to_param}")
end