Sha256: fa715da8cb7d2314d76092de46ecacd4d935a1733af1ad49d9174f83928d2f81

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

# encoding: utf-8

module Punchblock
  module Command
    class Unjoin < CommandNode
      register :unjoin, :core

      ##
      # Create an ujoin message
      #
      # @param [Hash] options
      # @option options [String, Optional] :other_call_id the call ID to unjoin
      # @option options [String, Optional] :mixer_name the mixer name to unjoin
      #
      # @return [Command::Unjoin] a formatted Rayo unjoin command
      #
      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 to unjoin
      def other_call_id
        read_attr :'call-id'
      end

      ##
      # @param [String] other the call ID to unjoin
      def other_call_id=(other)
        write_attr :'call-id', other
      end

      ##
      # @return [String] the mixer name to unjoin
      def mixer_name
        read_attr :'mixer-name'
      end

      ##
      # @param [String] other the mixer name to unjoin
      def mixer_name=(other)
        write_attr :'mixer-name', other
      end

      def inspect_attributes # :nodoc:
        [:other_call_id, :mixer_name] + super
      end
    end # Unjoin
  end # Command
end # Punchblock

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
punchblock-0.11.0 lib/punchblock/command/unjoin.rb
punchblock-0.10.0 lib/punchblock/command/unjoin.rb