Class: Twilio::REST::Preview
- Inherits:
-
Domain
- Object
- Domain
- Twilio::REST::Preview
show all
- Defined in:
- lib/twilio-ruby/rest/preview.rb,
lib/twilio-ruby/rest/preview/sync.rb,
lib/twilio-ruby/rest/preview/wireless.rb,
lib/twilio-ruby/rest/preview/understand.rb,
lib/twilio-ruby/rest/preview/marketplace.rb,
lib/twilio-ruby/rest/preview/sync/service.rb,
lib/twilio-ruby/rest/preview/wireless/sim.rb,
lib/twilio-ruby/rest/preview/hosted_numbers.rb,
lib/twilio-ruby/rest/preview/deployed_devices.rb,
lib/twilio-ruby/rest/preview/wireless/command.rb,
lib/twilio-ruby/rest/preview/wireless/rate_plan.rb,
lib/twilio-ruby/rest/preview/wireless/sim/usage.rb,
lib/twilio-ruby/rest/preview/understand/assistant.rb,
lib/twilio-ruby/rest/preview/sync/service/document.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb,
lib/twilio-ruby/rest/preview/understand/assistant/query.rb,
lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb,
lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb,
lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb,
lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb,
lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb,
lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb,
lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb,
lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb,
lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb,
lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb,
lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb,
lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
Defined Under Namespace
Classes: DeployedDevices, HostedNumbers, Marketplace, Sync, Understand, Wireless
Instance Attribute Summary
Attributes inherited from Domain
#client
Instance Method Summary
collapse
-
#assistants(sid = :unset) ⇒ Twilio::REST::Preview::Understand::AssistantInstance, Twilio::REST::Preview::Understand::AssistantList
-
#authorization_documents(sid = :unset) ⇒ Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentInstance, Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentList
-
#available_add_ons(sid = :unset) ⇒ Twilio::REST::Preview::Marketplace::AvailableAddOnInstance, Twilio::REST::Preview::Marketplace::AvailableAddOnList
-
#commands(sid = :unset) ⇒ Twilio::REST::Preview::Wireless::CommandInstance, Twilio::REST::Preview::Wireless::CommandList
-
#deployed_devices ⇒ Object
Version deployed_devices of preview.
-
#fleets(sid = :unset) ⇒ Twilio::REST::Preview::DeployedDevices::FleetInstance, Twilio::REST::Preview::DeployedDevices::FleetList
-
#hosted_number_orders(sid = :unset) ⇒ Twilio::REST::Preview::HostedNumbers::HostedNumberOrderInstance, Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList
-
#hosted_numbers ⇒ Object
Version hosted_numbers of preview.
-
#initialize(twilio) ⇒ Preview
constructor
Initialize the Preview Domain.
-
#installed_add_ons(sid = :unset) ⇒ Twilio::REST::Preview::Marketplace::InstalledAddOnInstance, Twilio::REST::Preview::Marketplace::InstalledAddOnList
-
#marketplace ⇒ Object
Version marketplace of preview.
-
#rate_plans(sid = :unset) ⇒ Twilio::REST::Preview::Wireless::RatePlanInstance, Twilio::REST::Preview::Wireless::RatePlanList
-
#services(sid = :unset) ⇒ Twilio::REST::Preview::Sync::ServiceInstance, Twilio::REST::Preview::Sync::ServiceList
-
#sims(sid = :unset) ⇒ Twilio::REST::Preview::Wireless::SimInstance, Twilio::REST::Preview::Wireless::SimList
-
#sync ⇒ Object
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#understand ⇒ Object
Version understand of preview.
-
#wireless ⇒ Object
Version wireless of preview.
Methods inherited from Domain
#absolute_url, #request
Constructor Details
#initialize(twilio) ⇒ Preview
Initialize the Preview Domain
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/twilio-ruby/rest/preview.rb', line 14
def initialize(twilio)
super
@base_url = 'https://preview.twilio.com'
@host = 'preview.twilio.com'
@port = 443
@deployed_devices = nil
@hosted_numbers = nil
@marketplace = nil
@sync = nil
@understand = nil
@wireless = nil
end
|
Instance Method Details
125
126
127
|
# File 'lib/twilio-ruby/rest/preview.rb', line 125
def assistants(sid=:unset)
self.understand.assistants(sid)
end
|
80
81
82
|
# File 'lib/twilio-ruby/rest/preview.rb', line 80
def authorization_documents(sid=:unset)
self.hosted_numbers.authorization_documents(sid)
end
|
98
99
100
|
# File 'lib/twilio-ruby/rest/preview.rb', line 98
def available_add_ons(sid=:unset)
self.marketplace.available_add_ons(sid)
end
|
133
134
135
|
# File 'lib/twilio-ruby/rest/preview.rb', line 133
def commands(sid=:unset)
self.wireless.commands(sid)
end
|
#deployed_devices ⇒ Object
Version deployed_devices of preview
32
33
34
|
# File 'lib/twilio-ruby/rest/preview.rb', line 32
def deployed_devices
@deployed_devices ||= DeployedDevices.new self
end
|
71
72
73
|
# File 'lib/twilio-ruby/rest/preview.rb', line 71
def fleets(sid=:unset)
self.deployed_devices.fleets(sid)
end
|
89
90
91
|
# File 'lib/twilio-ruby/rest/preview.rb', line 89
def hosted_number_orders(sid=:unset)
self.hosted_numbers.hosted_number_orders(sid)
end
|
#hosted_numbers ⇒ Object
Version hosted_numbers of preview
38
39
40
|
# File 'lib/twilio-ruby/rest/preview.rb', line 38
def hosted_numbers
@hosted_numbers ||= HostedNumbers.new self
end
|
108
109
110
|
# File 'lib/twilio-ruby/rest/preview.rb', line 108
def installed_add_ons(sid=:unset)
self.marketplace.installed_add_ons(sid)
end
|
#marketplace ⇒ Object
Version marketplace of preview
44
45
46
|
# File 'lib/twilio-ruby/rest/preview.rb', line 44
def marketplace
@marketplace ||= Marketplace.new self
end
|
141
142
143
|
# File 'lib/twilio-ruby/rest/preview.rb', line 141
def rate_plans(sid=:unset)
self.wireless.rate_plans(sid)
end
|
116
117
118
|
# File 'lib/twilio-ruby/rest/preview.rb', line 116
def services(sid=:unset)
self.sync.services(sid)
end
|
149
150
151
|
# File 'lib/twilio-ruby/rest/preview.rb', line 149
def sims(sid=:unset)
self.wireless.sims(sid)
end
|
#sync ⇒ Object
50
51
52
|
# File 'lib/twilio-ruby/rest/preview.rb', line 50
def sync
@sync ||= Sync.new self
end
|
#to_s ⇒ Object
Provide a user friendly representation
155
156
157
|
# File 'lib/twilio-ruby/rest/preview.rb', line 155
def to_s
'#<Twilio::REST::Preview>'
end
|
#understand ⇒ Object
Version understand of preview
56
57
58
|
# File 'lib/twilio-ruby/rest/preview.rb', line 56
def understand
@understand ||= Understand.new self
end
|
#wireless ⇒ Object
Version wireless of preview
62
63
64
|
# File 'lib/twilio-ruby/rest/preview.rb', line 62
def wireless
@wireless ||= Wireless.new self
end
|