Class: Lono::Sets::Status::Instance
- Inherits:
-
Object
- Object
- Lono::Sets::Status::Instance
- Defined in:
- lib/lono/sets/status/instance/base.rb,
lib/lono/sets/status/instance.rb,
lib/lono/sets/status/instance/show.rb,
lib/lono/sets/status/instance/deleted.rb,
lib/lono/sets/status/instance/completed.rb
Overview
Refer to Lono::Sets::Status::Instance::Base for more detailed docs.
Defined Under Namespace
Classes: Base, Completed, Deleted, Show
Instance Method Summary collapse
-
#initialize(stack_instance) ⇒ Instance
constructor
A new instance of Instance.
- #show ⇒ Object
- #tail(to = "completed") ⇒ Object
Constructor Details
#initialize(stack_instance) ⇒ Instance
Returns a new instance of Instance.
3 4 5 |
# File 'lib/lono/sets/status/instance.rb', line 3 def initialize(stack_instance) @stack_instance = stack_instance end |
Instance Method Details
#show ⇒ Object
16 17 18 |
# File 'lib/lono/sets/status/instance.rb', line 16 def show Show.new(@stack_instance).run end |
#tail(to = "completed") ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/lono/sets/status/instance.rb', line 7 def tail(to="completed") case to when "completed" Completed.new(@stack_instance).tail when "deleted" Deleted.new(@stack_instance).tail end end |