Class: ErpIntegration::Fulfil::Resources::PurchaseOrder
- Inherits:
-
ApiResource
- Object
- ApiResource
- ErpIntegration::Fulfil::Resources::PurchaseOrder
- Defined in:
- lib/erp_integration/fulfil/resources/purchase_order.rb
Constant Summary
Constants included from PaginationMethods
PaginationMethods::DEFAULT_LIMIT, PaginationMethods::DEFAULT_OFFSET, PaginationMethods::MAX_LIMIT
Instance Attribute Summary
Attributes inherited from ApiResource
Attributes included from QueryMethods
#or_clauses, #selected_fields, #where_clauses
Attributes included from PaginationMethods
#limit_value, #offset_value, #page_number
Instance Method Summary collapse
-
#create_with_options(options) ⇒ Object
Creates a Purchase Order with options.
-
#update_with_options(id, options) ⇒ Object
Updates a Purchase Order with options.
Methods inherited from ApiResource
#all, api_keys_pool, api_keys_pool=, client, config, #count, #each, #find_each, #initialize, model_name, model_name=
Methods included from QueryMethods
#or, #or!, #select, #select!, #where, #where!, #where_domain, #where_ilike, #where_in, #where_less_or_equal_to, #where_less_than, #where_like, #where_more_or_equal_to, #where_more_than, #where_not, #where_not_in
Methods included from Persistence
Methods included from PaginationMethods
#limit, #limit!, #offset, #offset!, #page, #page!
Methods included from FinderMethods
Methods included from Context
Constructor Details
This class inherits a constructor from ErpIntegration::Fulfil::ApiResource
Instance Method Details
#create_with_options(options) ⇒ Object
Creates a Purchase Order with options.
14 15 16 |
# File 'lib/erp_integration/fulfil/resources/purchase_order.rb', line 14 def () client.post("model/#{model_name}", ) end |
#update_with_options(id, options) ⇒ Object
Updates a Purchase Order with options.
22 23 24 |
# File 'lib/erp_integration/fulfil/resources/purchase_order.rb', line 22 def (id, ) client.put("model/#{model_name}/#{id}", ) end |