Class: Punchblock::Ref

Inherits:
RayoNode show all
Defined in:
lib/punchblock/ref.rb

Overview

An rayo Ref message. This provides the command ID in response to execution of a command.

Constant Summary

Constants inherited from RayoNode

Punchblock::RayoNode::InvalidNodeError

Instance Attribute Summary

Attributes inherited from RayoNode

#client, #component_id, #connection, #domain, #original_component, #target_call_id, #target_mixer_name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RayoNode

class_from_registration, #eql?, import, #inspect, register, #source

Class Method Details

.new(options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/punchblock/ref.rb', line 10

def self.new(options = {})
  super().tap do |new_node|
    options.each_pair { |k,v| new_node.send :"#{k}=", v }
  end
end

Instance Method Details

#idString

Returns the command ID.

Returns:

  • (String)

    the command ID



19
20
21
# File 'lib/punchblock/ref.rb', line 19

def id
  read_attr :id
end

#id=(ref_id) ⇒ Object

Parameters:

  • ref_id (String)

    the command ID



26
27
28
# File 'lib/punchblock/ref.rb', line 26

def id=(ref_id)
  write_attr :id, ref_id
end

#inspect_attributesObject

:nodoc:



30
31
32
# File 'lib/punchblock/ref.rb', line 30

def inspect_attributes # :nodoc:
  [:id] + super
end