Class: Twilio::REST::Insights::V1::ConferenceContext
- Inherits:
-
Twilio::REST::InstanceContext
- Object
- Twilio::REST::InstanceContext
- Twilio::REST::Insights::V1::ConferenceContext
- Defined in:
- lib/twilio-ruby/rest/insights/v1/conference.rb,
lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb
Defined Under Namespace
Classes: ConferenceParticipantContext, ConferenceParticipantInstance, ConferenceParticipantList, ConferenceParticipantPage
Instance Method Summary collapse
-
#conference_participants(participant_sid = :unset) ⇒ ConferenceParticipantList, ConferenceParticipantContext
Access the conference_participants.
-
#fetch ⇒ ConferenceInstance
Fetch the ConferenceInstance.
-
#initialize(version, conference_sid) ⇒ ConferenceContext
constructor
Initialize the ConferenceContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, conference_sid) ⇒ ConferenceContext
Initialize the ConferenceContext
196 197 198 199 200 201 202 203 204 205 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 196 def initialize(version, conference_sid) super(version) # Path Solution @solution = { conference_sid: conference_sid, } @uri = "/Conferences/#{@solution[:conference_sid]}" # Dependents @conference_participants = nil end |
Instance Method Details
#conference_participants(participant_sid = :unset) ⇒ ConferenceParticipantList, ConferenceParticipantContext
Access the conference_participants
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 229 def conference_participants(participant_sid=:unset) raise ArgumentError, 'participant_sid cannot be nil' if participant_sid.nil? if participant_sid != :unset return ConferenceParticipantContext.new(@version, @solution[:conference_sid],participant_sid ) end unless @conference_participants @conference_participants = ConferenceParticipantList.new( @version, conference_sid: @solution[:conference_sid], ) end @conference_participants end |
#fetch ⇒ ConferenceInstance
Fetch the ConferenceInstance
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 209 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) ConferenceInstance.new( @version, payload, conference_sid: @solution[:conference_sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
254 255 256 257 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 254 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Insights.V1.ConferenceContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
247 248 249 250 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 247 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Insights.V1.ConferenceContext #{context}>" end |