Class: Twilio::REST::IpMessagingBase

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

Direct Known Subclasses

IpMessaging

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ IpMessagingBase

Initialize ipMessaging domain

Parameters:

  • twilio
    • The twilio client



19
20
21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/ip_messaging_base.rb', line 19

def initialize(twilio)
  super(twilio)
  @base_url =  "https://ip-messaging.twilio.com"
  @host = "ip-messaging.twilio.com"
  @port = 443
  @v1 = nil
  @v2 = nil
end

Instance Method Details

#to_sObject

Provide a user friendly representation



38
39
40
# File 'lib/twilio-ruby/rest/ip_messaging_base.rb', line 38

def to_s
  '<Twilio::REST::IpMessaging>';
end

#v1Object



28
29
30
# File 'lib/twilio-ruby/rest/ip_messaging_base.rb', line 28

def v1
  @v1 ||= IpMessaging::V1.new self
end

#v2Object



32
33
34
# File 'lib/twilio-ruby/rest/ip_messaging_base.rb', line 32

def v2
  @v2 ||= IpMessaging::V2.new self
end