Class: Punchblock::Ref

Inherits:
RayoNode
  • Object
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.

Instance Attribute Summary

Attributes inherited from RayoNode

#call_id, #client, #component_id, #connection, #original_component

Instance Method Summary collapse

Methods inherited from RayoNode

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

Instance Method Details

#idString

Returns the command ID.

Returns:

  • (String)

    the command ID



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

def id
  read_attr :id
end

#id=(ref_id) ⇒ Object

Parameters:

  • ref_id (String)

    the command ID



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

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

#inspect_attributesObject

:nodoc:



22
23
24
# File 'lib/punchblock/ref.rb', line 22

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