Class: Pixo::Renderer::AddFadecandy

Inherits:
Object
  • Object
show all
Defined in:
lib/pixo/renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(hostname, count) ⇒ AddFadecandy

Returns a new instance of AddFadecandy.



46
47
48
49
# File 'lib/pixo/renderer.rb', line 46

def initialize(hostname, count)
  @hostname = hostname
  @count = count
end

Instance Method Details

#callObject



51
52
53
54
# File 'lib/pixo/renderer.rb', line 51

def call
  Pixo::Application.instance.post Proc.new { |app| app.add_fadecandy(Pixo::Native::FadeCandy.new(@hostname, @count)) }
  self
end