lib/twilio-ruby/rest/ip_messaging.rb in twilio-ruby-5.0.0.rc18 vs lib/twilio-ruby/rest/ip_messaging.rb in twilio-ruby-5.0.0.rc19

- old
+ new

@@ -1,40 +1,47 @@ ## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 -# / / +# / / module Twilio module REST class IpMessaging < Domain ## # Initialize the IpMessaging Domain def initialize(twilio) super - + @base_url = 'https://ip-messaging.twilio.com' @host = 'ip-messaging.twilio.com' @port = 443 - + # Versions @v1 = nil + @v2 = nil end - + ## # Version v1 of ip_messaging def v1 @v1 ||= V1.new self end - + + ## + # Version v2 of ip_messaging + def v2 + @v2 ||= V2.new self + end + def credentials - self.v1.credentials + self.v2.credentials end - + def services - self.v1.services + self.v2.services end - + ## # Provide a user friendly representation def to_s '#<Twilio::REST::IpMessaging>' end \ No newline at end of file