Class: Zaikio::Procurement::MaterialRequirement

Inherits:
Base
  • Object
show all
Defined in:
lib/zaikio/procurement/material_requirement.rb

Instance Method Summary collapse

Instance Method Details

#archiveObject



22
23
24
25
26
# File 'lib/zaikio/procurement/material_requirement.rb', line 22

def archive
  Zaikio::Procurement::MaterialRequirement.new(
    self.class.request(:patch, "#{collection_name}/#{id}/archive").data
  )
end

#refreshObject



28
29
30
31
32
# File 'lib/zaikio/procurement/material_requirement.rb', line 28

def refresh
  Zaikio::Procurement::MaterialRequirement.new(
    self.class.request(:patch, "#{collection_name}/#{id}/refresh").data
  )
end