Class: Twilio::REST::IpMessagingBase
- Defined in:
- lib/twilio-ruby/rest/ip_messaging_base.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ IpMessagingBase
constructor
Initialize ipMessaging domain.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #v1 ⇒ Object
- #v2 ⇒ Object
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ IpMessagingBase
Initialize ipMessaging domain
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_s ⇒ Object
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 |
#v1 ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/ip_messaging_base.rb', line 28 def v1 @v1 ||= IpMessaging::V1.new self end |
#v2 ⇒ Object
32 33 34 |
# File 'lib/twilio-ruby/rest/ip_messaging_base.rb', line 32 def v2 @v2 ||= IpMessaging::V2.new self end |