Class: Command::Failure
- Inherits:
-
Object
- Object
- Command::Failure
- Defined in:
- lib/command/failure.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result, errors) ⇒ Failure
constructor
A new instance of Failure.
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/command/failure.rb', line 5 def errors @errors end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/command/failure.rb', line 5 def result @result end |