Class: Command::Failure

Inherits:
Object
  • Object
show all
Defined in:
lib/command/failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result, errors) ⇒ Failure

Returns a new instance of Failure.



7
8
9
10
# File 'lib/command/failure.rb', line 7

def initialize(result, errors)
  @result = result
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



5
6
7
# File 'lib/command/failure.rb', line 5

def errors
  @errors
end

#resultObject (readonly)

Returns the value of attribute result.



5
6
7
# File 'lib/command/failure.rb', line 5

def result
  @result
end