Class: Brightpearl::Resource
- Inherits:
-
Object
- Object
- Brightpearl::Resource
show all
- Defined in:
- lib/brightpearl/resource.rb
Direct Known Subclasses
Brand, Channel, Contact, ContactCustomField, ContactCustomFieldMetadata, CustomerPayment, GoodsOutNote, Order, OrderCustomField, OrderCustomFieldMetadata, OrderRow, OrderShippingStatus, OrderStatus, OrderStatusUpdate, PriceList, Product, ProductAvailability, ProductCategory, ProductCustomFieldMetadata, ProductPrice, ProductType, TaxCode, Warehouse, Webhook
Class Method Summary
collapse
Class Method Details
.send_request(path:, method: :get, **options) ⇒ Object
4
5
6
|
# File 'lib/brightpearl/resource.rb', line 4
def self.send_request(path:, method: :get, **options)
Brightpearl::Client.send_request(path: path, method: method, **options)
end
|
.to_query(query_params) ⇒ Object
8
9
10
|
# File 'lib/brightpearl/resource.rb', line 8
def self.to_query(query_params)
URI.encode_www_form(query_params)
end
|