Class: SmartCore::Operation::Result Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.2.0

Direct Known Subclasses

Custom, Failure, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*result_attributes, **result_options) ⇒ void

Parameters:

  • result_attributes (Array<Any>)
  • result_options (Hash<Symbol,Any>)

Since:

  • 0.2.0



24
25
26
27
# File 'lib/smart_core/operation/result.rb', line 24

def initialize(*result_attributes, **result_options)
  @__result_attributes__ = result_attributes
  @__result_options__ = result_options
end

Instance Attribute Details

#__result_attributes__Array<Any> (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Array<Any>)

Since:

  • 0.2.0



10
11
12
# File 'lib/smart_core/operation/result.rb', line 10

def __result_attributes__
  @__result_attributes__
end

#__result_options__Hash<Symbol,Any> (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Hash<Symbol,Any>)

Since:

  • 0.2.0



16
17
18
# File 'lib/smart_core/operation/result.rb', line 16

def __result_options__
  @__result_options__
end

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)

Since:

  • 0.6.0



49
50
51
# File 'lib/smart_core/operation/result.rb', line 49

def custom?
  false
end

#failure?Boolean

Returns:

  • (Boolean)

Since:

  • 0.2.0



41
42
43
# File 'lib/smart_core/operation/result.rb', line 41

def failure?
  false
end

#success?Boolean

Returns:

  • (Boolean)

Since:

  • 0.2.0



33
34
35
# File 'lib/smart_core/operation/result.rb', line 33

def success?
  false
end