Class: Pixo::Renderer::AddFadecandy
- Inherits:
-
Object
- Object
- Pixo::Renderer::AddFadecandy
- Defined in:
- lib/pixo/renderer.rb
Instance Method Summary collapse
- #call(service) ⇒ Object
-
#initialize(hostname, count) ⇒ AddFadecandy
constructor
A new instance of AddFadecandy.
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 |