Class: Twilio::REST::IpMessaging::V1
- Defined in:
- lib/twilio-ruby/rest/ip_messaging/v1.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service.rb,
lib/twilio-ruby/rest/ip_messaging/v1/credential.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb
Defined Under Namespace
Classes: CredentialContext, CredentialInstance, CredentialList, CredentialPage, ServiceContext, ServiceInstance, ServiceList, ServicePage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #credentials(sid = :unset) ⇒ Twilio::REST::IpMessaging::V1::CredentialContext, Twilio::REST::IpMessaging::V1::CredentialList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of IpMessaging.
- #services(sid = :unset) ⇒ Twilio::REST::IpMessaging::V1::ServiceContext, Twilio::REST::IpMessaging::V1::ServiceList
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of IpMessaging
21 22 23 24 25 26 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1.rb', line 21 def initialize(domain) super @version = 'v1' @credentials = nil @services = nil end |
Instance Method Details
#credentials(sid = :unset) ⇒ Twilio::REST::IpMessaging::V1::CredentialContext, Twilio::REST::IpMessaging::V1::CredentialList
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1.rb', line 32 def credentials(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @credentials ||= CredentialList.new self else CredentialContext.new(self, sid) end end |
#services(sid = :unset) ⇒ Twilio::REST::IpMessaging::V1::ServiceContext, Twilio::REST::IpMessaging::V1::ServiceList
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1.rb', line 46 def services(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @services ||= ServiceList.new self else ServiceContext.new(self, sid) end end |
#to_s ⇒ Object
Provide a user friendly representation
58 59 60 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1.rb', line 58 def to_s '<Twilio::REST::IpMessaging::V1>'; end |