Class: Trains::Utils::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/trains/utils/result.rb

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



3
4
5
# File 'lib/trains/utils/result.rb', line 3

def data
  @data
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



3
4
5
# File 'lib/trains/utils/result.rb', line 3

def error
  @error
end