Class: LukitaService::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/lukita_service/result.rb

Overview

Result class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject

Returns the value of attribute error.



4
5
6
# File 'lib/lukita_service/result.rb', line 4

def error
  @error
end

#exceptionObject

Returns the value of attribute exception.



4
5
6
# File 'lib/lukita_service/result.rb', line 4

def exception
  @exception
end

#resultObject

Returns the value of attribute result.



4
5
6
# File 'lib/lukita_service/result.rb', line 4

def result
  @result
end

#validObject 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