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