Class: Performa::CommandResult

Inherits:
String
  • Object
show all
Defined in:
lib/performa/command_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#successObject

Returns the value of attribute success.



5
6
7
# File 'lib/performa/command_result.rb', line 5

def success
  @success
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/performa/command_result.rb', line 11

def failure?
  !@success
end

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/performa/command_result.rb', line 7

def success?
  @success
end