Sha256: 5a7ecf3acfc919f695835bf683562b1dfad74f042808c6137ea12f7d022b5770

Contents?: true

Size: 1.18 KB

Versions: 14

Compression:

Stored size: 1.18 KB

Contents

# bandwidth
#
# This file was automatically generated by APIMATIC v2.0
# ( https://apimatic.io ).

module Bandwidth
  # ParticipantSubscription Model.
  class ParticipantSubscription < BaseModel
    SKIP = Object.new
    private_constant :SKIP

    # Participant the subscriber should be subscribed to
    # @return [String]
    attr_accessor :participant_id

    # A mapping from model property names to API property names.
    def self.names
      @_hash = {} if @_hash.nil?
      @_hash['participant_id'] = 'participantId'
      @_hash
    end

    # An array for optional fields
    def optionals
      []
    end

    # An array for nullable fields
    def nullables
      []
    end

    def initialize(participant_id = nil)
      @participant_id = participant_id unless participant_id == SKIP
    end

    # Creates an instance of the object from a hash.
    def self.from_hash(hash)
      return nil unless hash

      # Extract variables from the hash.
      participant_id = hash.key?('participantId') ? hash['participantId'] : SKIP

      # Create object from extracted values.
      ParticipantSubscription.new(participant_id)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bandwidth-sdk-10.5.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-10.4.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-10.3.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-10.2.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-10.1.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-10.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.4.1 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.4.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.3.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.2.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.1.2 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.1.1 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.1.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb
bandwidth-sdk-9.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb