Class: Twilio::REST::PreviewBase

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/preview_base.rb

Direct Known Subclasses

Preview

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ PreviewBase

Initialize preview domain

Parameters:

  • twilio
    • The twilio client



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_devicesObject



31
32
33
# File 'lib/twilio-ruby/rest/preview_base.rb', line 31

def deployed_devices
  @deployed_devices ||= Preview::DeployedDevices.new self
end

#hosted_numbersObject



35
36
37
# File 'lib/twilio-ruby/rest/preview_base.rb', line 35

def hosted_numbers
  @hosted_numbers ||= Preview::HostedNumbers.new self
end

#marketplaceObject



43
44
45
# File 'lib/twilio-ruby/rest/preview_base.rb', line 43

def marketplace
  @marketplace ||= Preview::Marketplace.new self
end

#syncObject



39
40
41
# File 'lib/twilio-ruby/rest/preview_base.rb', line 39

def sync
  @sync ||= Preview::Sync.new self
end

#to_sObject

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

#wirelessObject



47
48
49
# File 'lib/twilio-ruby/rest/preview_base.rb', line 47

def wireless
  @wireless ||= Preview::Wireless.new self
end