Class: LukitaService::Result
- Inherits:
-
Object
- Object
- LukitaService::Result
- Defined in:
- lib/lukita_service/result.rb
Overview
Result class
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#result ⇒ Object
Returns the value of attribute result.
-
#valid ⇒ Object
(also: #valid?)
Returns the value of attribute valid.
Instance Method Summary collapse
-
#initialize(params) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(params) ⇒ Result
Returns a new instance of Result.
7 8 9 10 11 12 |
# File 'lib/lukita_service/result.rb', line 7 def initialize(params) @valid = params[:valid?] @result = params[:result] @error = params[:error] @exception = params[:exception] end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
4 5 6 |
# File 'lib/lukita_service/result.rb', line 4 def error @error end |
#exception ⇒ Object
Returns the value of attribute exception.
4 5 6 |
# File 'lib/lukita_service/result.rb', line 4 def exception @exception end |
#result ⇒ Object
Returns the value of attribute result.
4 5 6 |
# File 'lib/lukita_service/result.rb', line 4 def result @result end |
#valid ⇒ Object Also known as: valid?
Returns the value of attribute valid.
4 5 6 |
# File 'lib/lukita_service/result.rb', line 4 def valid @valid end |