class Bandwidth::ParticipantSubscription

ParticipantSubscription Model.

Attributes

participant_id[RW]

Participant the subscriber should be subscribed to @return [String]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb, line 25
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  participant_id = hash['participantId']

  # Create object from extracted values.
  ParticipantSubscription.new(participant_id)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['participant_id'] = 'participantId'
  @_hash
end
new(participant_id = nil) click to toggle source
# File lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb, line 20
def initialize(participant_id = nil)
  @participant_id = participant_id
end