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

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

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Punchblock::CommandNode

#initialize, #inspect_attributes, #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

+ (Object) new(options = {})



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

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

Instance Method Details

- (Object) amount=(other)



245
246
247
# File 'lib/punchblock/component/output.rb', line 245

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

- (Object) direction=(other)



241
242
243
# File 'lib/punchblock/component/output.rb', line 241

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

- (Object) execute!



254
255
256
257
# File 'lib/punchblock/component/output.rb', line 254

def execute!
  source.stopped_seeking!
  super
end

- (Object) request!



249
250
251
252
# File 'lib/punchblock/component/output.rb', line 249

def request!
  source.seeking!
  super
end