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
- #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 |
# 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 @hosted_numbers = nil @sync = nil @marketplace = nil @wireless = nil end |
Instance Method Details
#hosted_numbers ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 30 def hosted_numbers @hosted_numbers ||= Preview::HostedNumbers.new self end |
#marketplace ⇒ Object
38 39 40 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 38 def marketplace @marketplace ||= Preview::Marketplace.new self end |
#sync ⇒ Object
34 35 36 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 34 def sync @sync ||= Preview::Sync.new self end |
#to_s ⇒ Object
Provide a user friendly representation
48 49 50 |
# File 'lib/twilio-ruby/rest/preview_base.rb', line 48 def to_s '<Twilio::REST::Preview>'; end |