Class: SignalWire::REST::Namespaces::RegistryNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/signalwire/rest/namespaces/registry.rb

Overview

10DLC Campaign Registry namespace.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ RegistryNamespace

Returns a new instance of RegistryNamespace.



57
58
59
60
61
62
63
# File 'lib/signalwire/rest/namespaces/registry.rb', line 57

def initialize(http)
  base = '/api/relay/rest/registry/beta'
  @brands    = RegistryBrands.new(http, "#{base}/brands")
  @campaigns = RegistryCampaigns.new(http, "#{base}/campaigns")
  @orders    = RegistryOrders.new(http, "#{base}/orders")
  @numbers   = RegistryNumbers.new(http, "#{base}/numbers")
end

Instance Attribute Details

#brandsObject (readonly)

Returns the value of attribute brands.



55
56
57
# File 'lib/signalwire/rest/namespaces/registry.rb', line 55

def brands
  @brands
end

#campaignsObject (readonly)

Returns the value of attribute campaigns.



55
56
57
# File 'lib/signalwire/rest/namespaces/registry.rb', line 55

def campaigns
  @campaigns
end

#numbersObject (readonly)

Returns the value of attribute numbers.



55
56
57
# File 'lib/signalwire/rest/namespaces/registry.rb', line 55

def numbers
  @numbers
end

#ordersObject (readonly)

Returns the value of attribute orders.



55
56
57
# File 'lib/signalwire/rest/namespaces/registry.rb', line 55

def orders
  @orders
end