Class: Bently::Recipe::Say
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #args ⇒ Object
-
#initialize(*args) ⇒ Say
constructor
A new instance of Say.
Methods inherited from Operation
Constructor Details
#initialize(*args) ⇒ Say
Returns a new instance of Say.
11 12 13 |
# File 'lib/bently/recipe.rb', line 11 def initialize *args @message, @status, @color = args end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
10 11 12 |
# File 'lib/bently/recipe.rb', line 10 def color @color end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
10 11 12 |
# File 'lib/bently/recipe.rb', line 10 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/bently/recipe.rb', line 10 def status @status end |
Instance Method Details
#args ⇒ Object
14 15 16 |
# File 'lib/bently/recipe.rb', line 14 def args @status ? [@status,@message,@color] : [@status] end |