Class: Iterable::BulkCatalogItems
- Inherits:
-
ApiResource
- Object
- ApiResource
- Iterable::BulkCatalogItems
- Defined in:
- lib/iterable/bulk_catalog_items.rb
Overview
Interact with /catalogs/catalogName/items API endpoints **currently in Beta only**
Instance Attribute Summary collapse
-
#catalog ⇒ Object
readonly
Returns the value of attribute catalog.
Attributes inherited from ApiResource
Instance Method Summary collapse
- #create(items = {}, replace_uploaded_fields_only: false) ⇒ Object
- #delete(item_ids = []) ⇒ Object
-
#initialize(catalog, conf = nil) ⇒ BulkCatalogItems
constructor
A new instance of BulkCatalogItems.
Methods inherited from ApiResource
default_config, #default_config
Constructor Details
#initialize(catalog, conf = nil) ⇒ BulkCatalogItems
Returns a new instance of BulkCatalogItems.
29 30 31 32 |
# File 'lib/iterable/bulk_catalog_items.rb', line 29 def initialize(catalog, conf = nil) @catalog = catalog super conf end |
Instance Attribute Details
#catalog ⇒ Object (readonly)
Returns the value of attribute catalog.
18 19 20 |
# File 'lib/iterable/bulk_catalog_items.rb', line 18 def catalog @catalog end |
Instance Method Details
#create(items = {}, replace_uploaded_fields_only: false) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/iterable/bulk_catalog_items.rb', line 62 def create(items = {}, replace_uploaded_fields_only: false) body = { documents: items, replaceUploadedFieldsOnly: replace_uploaded_fields_only } Iterable.request(conf, base_path).post(body) end |