Sha256: 88de85854c9ea95aa8108b9d9c1ef634e7039a8c2f2663c33c829ae8637ca80a
Contents?: true
Size: 1.7 KB
Versions: 8
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' @services = nil @sessions = nil @webhooks = nil 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 ## # @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 ## # @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
8 entries across 8 versions & 1 rubygems