Class: DearInventory::Purchase
- Extended by:
- T::Sig
- Defined in:
- lib/dear_inventory/resources/purchase.rb
Class Method Summary collapse
- .index(params = {}) ⇒ Object (also: call)
- .show(params = {}) ⇒ Object
Methods inherited from Resource
Methods included from IsASubclass
Class Method Details
.index(params = {}) ⇒ Object Also known as: call
17 18 19 20 21 22 23 24 |
# File 'lib/dear_inventory/resources/purchase.rb', line 17 def index(params = {}) new.request( :get, endpoint: "index", model: DearInventory::Models::PurchasesResults, params: params ) end |
.show(params = {}) ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/dear_inventory/resources/purchase.rb', line 36 def show(params = {}) new.request( :get, endpoint: "show", model: DearInventory::Models::Purchase, params: params ) end |