Class: Bently::Recipe::Say

Inherits:
Operation show all
Defined in:
lib/bently/recipe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Operation

#after, #say

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

#colorObject (readonly)

Returns the value of attribute color.



10
11
12
# File 'lib/bently/recipe.rb', line 10

def color
  @color
end

#messageObject (readonly)

Returns the value of attribute message.



10
11
12
# File 'lib/bently/recipe.rb', line 10

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/bently/recipe.rb', line 10

def status
  @status
end

Instance Method Details

#argsObject



14
15
16
# File 'lib/bently/recipe.rb', line 14

def args
  @status ? [@status,@message,@color] : [@status]
end