Class: SignalWire::REST::Namespaces::RegistryBrands
Overview
Instance Method Summary
collapse
#initialize
Instance Method Details
#create(**kwargs) ⇒ Object
9
|
# File 'lib/signalwire/rest/namespaces/registry.rb', line 9
def create(**kwargs) = @http.post(@base_path, kwargs)
|
#create_campaign(brand_id, **kwargs) ⇒ Object
16
17
18
|
# File 'lib/signalwire/rest/namespaces/registry.rb', line 16
def create_campaign(brand_id, **kwargs)
@http.post(_path(brand_id, 'campaigns'), kwargs)
end
|
#get(brand_id) ⇒ Object
10
|
# File 'lib/signalwire/rest/namespaces/registry.rb', line 10
def get(brand_id) = @http.get(_path(brand_id))
|
#list(**params) ⇒ Object
8
|
# File 'lib/signalwire/rest/namespaces/registry.rb', line 8
def list(**params) = @http.get(@base_path, params.empty? ? nil : params)
|
#list_campaigns(brand_id, **params) ⇒ Object
12
13
14
|
# File 'lib/signalwire/rest/namespaces/registry.rb', line 12
def list_campaigns(brand_id, **params)
@http.get(_path(brand_id, 'campaigns'), params.empty? ? nil : params)
end
|