Sha256: 1fddb25aed70bb821e5b09d81f434589f07a5d3c68cf62c1f5adb4600a8fa74b
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true module Twilio module REST class Messaging class V1 < Version ## # Initialize the V1 version of Messaging def initialize(domain) super @version = 'v1' @sessions = nil @services = nil @webhooks = nil end ## # @param [String] sid The SID of the Session resource to fetch. # @return [Twilio::REST::Messaging::V1::SessionContext] if sid was passed. # @return [Twilio::REST::Messaging::V1::SessionList] def sessions(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @sessions ||= SessionList.new self else SessionContext.new(self, sid) end end ## # @param [String] sid The SID of the Service resource to fetch. # @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed. # @return [Twilio::REST::Messaging::V1::ServiceList] def services(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @services ||= ServiceList.new self else ServiceContext.new(self, sid) end end ## # @return [Twilio::REST::Messaging::V1::WebhookContext] def webhooks @webhooks ||= WebhookContext.new self end ## # Provide a user friendly representation def to_s '<Twilio::REST::Messaging::V1>' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twilio-ruby-5.28.0 | lib/twilio-ruby/rest/messaging/v1.rb |
twilio-ruby-5.27.1 | lib/twilio-ruby/rest/messaging/v1.rb |