Class: Twilio::REST::PreviewBase
- Defined in:
- lib/twilio-ruby/rest/preview_base.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
- #deployed_devices ⇒ Object
- #hosted_numbers ⇒ Object
-
#initialize(twilio) ⇒ PreviewBase
constructor
Initialize preview domain.
- #marketplace ⇒ Object
- #sync ⇒ Object
-
#to_s ⇒ Object
Provide a user friendly representation.
- #wireless ⇒ Object
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ PreviewBase
Initialize preview domain
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 19 def initialize(twilio) super(twilio) @base_url = "https://preview.twilio.com" @host = "preview.twilio.com" @port = 443 @deployed_devices = nil @hosted_numbers = nil @sync = nil @marketplace = nil @wireless = nil end |
Instance Method Details
#deployed_devices ⇒ Object
31 32 33 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 31 def deployed_devices @deployed_devices ||= Preview::DeployedDevices.new self end |
#hosted_numbers ⇒ Object
35 36 37 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 35 def hosted_numbers @hosted_numbers ||= Preview::HostedNumbers.new self end |
#marketplace ⇒ Object
43 44 45 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 43 def marketplace @marketplace ||= Preview::Marketplace.new self end |
#sync ⇒ Object
39 40 41 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 39 def sync @sync ||= Preview::Sync.new self end |
#to_s ⇒ Object
Provide a user friendly representation
53 54 55 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 53 def to_s '<Twilio::REST::Preview>'; end |