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