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.

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

+ (Object) new(options = {})



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

- (String) id

The command ID

Returns:

  • (String)

    the command ID



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

def id
  read_attr :id
end

- (Object) id=(ref_id)

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

- (Object) inspect_attributes

:nodoc:



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

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