Module: BWAPI::Client::Brandwatch::PriceStructures
- Includes:
- Clients
- Included in:
- BWAPI::Client::Brandwatch
- Defined in:
- lib/bwapi/client/brandwatch/price_structures.rb,
lib/bwapi/client/brandwatch/price_structures/clients.rb
Overview
PriceStructures module for brandwatch/pricestructures endpoint
Defined Under Namespace
Modules: Clients
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_client_price_structures(client_id) ⇒ Object
Get the price structures available for a client.
-
#get_price_structures ⇒ Array
Show available price structures.
Instance Method Details
#create_price_structure(opts) ⇒ Hash
Create a new price structure
40 41 42 |
# File 'lib/bwapi/client/brandwatch/price_structures.rb', line 40 def create_price_structure(opts) post 'brandwatch/pricestructures', opts end |
#delete_price_structure(price_structure_id) ⇒ Hash
Delete a price structure
48 49 50 |
# File 'lib/bwapi/client/brandwatch/price_structures.rb', line 48 def delete_price_structure(price_structure_id) delete "brandwatch/pricestructures/#{price_structure_id}" end |
#get_client_price_structures(client_id) ⇒ Object
Get the price structures available for a client
TODO: Add parameters documentation
18 19 20 |
# File 'lib/bwapi/client/brandwatch/price_structures.rb', line 18 def get_client_price_structures(client_id) get "/brandwatch/pricestructures/clients/#{client_id}" end |
#get_price_structures ⇒ Array
Show available price structures
11 12 13 |
# File 'lib/bwapi/client/brandwatch/price_structures.rb', line 11 def get_price_structures get 'brandwatch/pricestructures' end |