Class: Punchblock::Ref
- 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
-
#id ⇒ String
The command ID.
- #id=(ref_id) ⇒ Object
-
#inspect_attributes ⇒ Object
:nodoc:.
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( = {}) super().tap do |new_node| .each_pair { |k,v| new_node.send :"#{k}=", v } end end |
Instance Method Details
#id ⇒ String
Returns the command ID.
19 20 21 |
# File 'lib/punchblock/ref.rb', line 19 def id read_attr :id end |
#id=(ref_id) ⇒ Object
26 27 28 |
# File 'lib/punchblock/ref.rb', line 26 def id=(ref_id) write_attr :id, ref_id end |
#inspect_attributes ⇒ Object
:nodoc:
30 31 32 |
# File 'lib/punchblock/ref.rb', line 30 def inspect_attributes # :nodoc: [:id] + super end |