Class: EasyHubspot::Product
Overview
class EasyHubspot::Product
Constant Summary collapse
- PRODUCT_ENDPOINT =
'crm/v3/objects/products'
Class Method Summary collapse
- .create_product(body) ⇒ Object
- .delete_product(product_id) ⇒ Object
- .get_product(product_id) ⇒ Object
- .get_products ⇒ Object
- .update_product(product_id, body) ⇒ Object
Methods inherited from Base
Class Method Details
.create_product(body) ⇒ Object
17 18 19 |
# File 'lib/easy_hubspot/product.rb', line 17 def create_product(body) Client.do_post(PRODUCT_ENDPOINT, body, headers) end |
.delete_product(product_id) ⇒ Object
25 26 27 |
# File 'lib/easy_hubspot/product.rb', line 25 def delete_product(product_id) Client.do_delete(product_id_endpoint(product_id), headers) end |
.get_product(product_id) ⇒ Object
9 10 11 |
# File 'lib/easy_hubspot/product.rb', line 9 def get_product(product_id) Client.do_get(product_id_endpoint(product_id), headers) end |
.get_products ⇒ Object
13 14 15 |
# File 'lib/easy_hubspot/product.rb', line 13 def get_products Client.do_get(PRODUCT_ENDPOINT, headers) end |