Sha256: 725759dafc1cb05d8045c287be6a17406170610b26d3890631be90a23f0c3a33
Contents?: true
Size: 1.21 KB
Versions: 11
Compression:
Stored size: 1.21 KB
Contents
module Punchblock class Event class Joined < Event register :joined, :core ## # Create a joined event # # @param [Hash] options # @option options [String, Optional] :other_call_id the call ID that was joined # @option options [String, Optional] :mixer_id the mixer name that was joined # # @return [Event::Joined] a formatted Rayo joined event # def self.new(options = {}) super().tap do |new_node| options.each_pair { |k,v| new_node.send :"#{k}=", v } end end ## # @return [String] the call ID that was joined def other_call_id read_attr :'call-id' end ## # @param [String] other the call ID that was joined def other_call_id=(other) write_attr :'call-id', other end ## # @return [String] the mixer name that was joined def mixer_id read_attr :'mixer-id' end ## # @param [String] other the mixer name that was joined def mixer_id=(other) write_attr :'mixer-id', other end def inspect_attributes # :nodoc: [:other_call_id, :mixer_id] + super end end # Joined end end # Punchblock
Version data entries
11 entries across 11 versions & 1 rubygems