Class: Punchblock::Component::Output::Seek

Inherits:
Punchblock::CommandNode show all
Defined in:
lib/punchblock/component/output.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from RayoNode

#call_id, #client, #component_id, #connection, #domain, #mixer_name, #original_component

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Punchblock::CommandNode

#initialize, #response, #response=, #write_attr

Methods inherited from RayoNode

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

Constructor Details

This class inherits a constructor from Punchblock::CommandNode

Class Method Details

.new(options = {}) ⇒ Object



232
233
234
235
236
237
# File 'lib/punchblock/component/output.rb', line 232

def self.new(options = {})
  super.tap do |new_node|
    new_node.direction  = options[:direction]
    new_node.amount     = options[:amount]
  end
end

Instance Method Details

#amount=(other) ⇒ Object



243
244
245
# File 'lib/punchblock/component/output.rb', line 243

def amount=(other)
  write_attr :amount, other
end

#direction=(other) ⇒ Object



239
240
241
# File 'lib/punchblock/component/output.rb', line 239

def direction=(other)
  write_attr :direction, other
end

#execute!Object



252
253
254
255
# File 'lib/punchblock/component/output.rb', line 252

def execute!
  source.stopped_seeking!
  super
end

#request!Object



247
248
249
250
# File 'lib/punchblock/component/output.rb', line 247

def request!
  source.seeking!
  super
end