Module: AyeCommander::Status::Writeable

Included in:
Command
Defined in:
lib/aye_commander/status.rb

Overview

This module defines methods that allow to modify the status

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#status=(value) ⇒ Object (writeonly)

Sets the attribute status

Parameters:

  • value

    the value to set the attribute status to.


40
41
42
# File 'lib/aye_commander/status.rb', line 40

def status=(value)
  @status = value
end

Instance Method Details

#fail!(status = :failure) ⇒ Object

Fails the status


43
44
45
# File 'lib/aye_commander/status.rb', line 43

def fail!(status = :failure)
  @status = status
end