Sha256: ad3004ce073d096be8ee9f1e79fd6d1826e77f355c7ff70cc98a327418206681
Contents?: true
Size: 1.89 KB
Versions: 8
Compression:
Stored size: 1.89 KB
Contents
## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / module Twilio module REST class Video class V1 < Version ## # Initialize the V1 version of Video def initialize(domain) super @version = 'v1' @compositions = nil @recordings = nil @rooms = nil end ## # @param [String] sid The sid # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed. # @return [Twilio::REST::Video::V1::CompositionList] def compositions(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @compositions ||= CompositionList.new self else CompositionContext.new(self, sid) end end ## # @param [String] sid The sid # @return [Twilio::REST::Video::V1::RecordingContext] if sid was passed. # @return [Twilio::REST::Video::V1::RecordingList] def recordings(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @recordings ||= RecordingList.new self else RecordingContext.new(self, sid) end end ## # @param [String] sid The sid # @return [Twilio::REST::Video::V1::RoomContext] if sid was passed. # @return [Twilio::REST::Video::V1::RoomList] def rooms(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @rooms ||= RoomList.new self else RoomContext.new(self, sid) end end ## # Provide a user friendly representation def to_s '<Twilio::REST::Video::V1>' end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems