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.



79
80
81
82
# File 'lib/pixo/renderer.rb', line 79

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

Instance Method Details

#call(service) ⇒ Object



84
85
86
87
# File 'lib/pixo/renderer.rb', line 84

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