Module: BWAPI::Client::Brandwatch::PriceStructures
- Included in:
- BWAPI::Client::Brandwatch
- Defined in:
- lib/bwapi/client/brandwatch/price_structures.rb
Overview
PriceStructures module for brandwatch/pricestructures endpoint
Instance Method Summary collapse
-
#create_price_structure(opts) ⇒ Hash
Create a new price structure.
-
#delete_price_structure(price_structure_id) ⇒ Hash
Delete a price structure.
-
#get_price_structures ⇒ Array
Show available price structures.
Instance Method Details
#create_price_structure(opts) ⇒ Hash
Create a new price structure
31 32 33 |
# File 'lib/bwapi/client/brandwatch/price_structures.rb', line 31 def create_price_structure(opts) post 'brandwatch/pricestructures', opts end |
#delete_price_structure(price_structure_id) ⇒ Hash
Delete a price structure
39 40 41 |
# File 'lib/bwapi/client/brandwatch/price_structures.rb', line 39 def delete_price_structure(price_structure_id) delete "brandwatch/pricestructures/#{price_structure_id}" end |
#get_price_structures ⇒ Array
Show available price structures
9 10 11 |
# File 'lib/bwapi/client/brandwatch/price_structures.rb', line 9 def get_price_structures get 'brandwatch/pricestructures' end |