Class: Maestro::Command::StateUpdater

Inherits:
StoryUpdater show all
Defined in:
lib/commands/story_commands.rb

Direct Known Subclasses

Accept, Cancel, Deliver, Finish, Reject, Start

Class Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Maestro::Command

command, describe

Constructor Details

#initialize(number) ⇒ StateUpdater

Returns a new instance of StateUpdater.



54
55
56
# File 'lib/commands/story_commands.rb', line 54

def initialize(number)
  @number = number
end

Class Attribute Details

.stateObject (readonly)

Returns the value of attribute state.



52
53
54
# File 'lib/commands/story_commands.rb', line 52

def state
  @state
end

Instance Method Details

#invokeObject



58
59
60
# File 'lib/commands/story_commands.rb', line 58

def invoke
  update_state
end