Class: SmartCore::Operation::Result::Basic Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/operation/result/basic.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.1.0

Direct Known Subclasses

Callback, Error, Success

Instance Method Summary collapse

Constructor Details

#initialize(*result_arguments, &result_block) ⇒ void

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.

Parameters:

  • result_arguments (Array<Any>)
  • result_block (Block)

Since:

  • 0.1.0



12
13
14
15
16
17
# File 'lib/smart_core/operation/result/basic.rb', line 12

def initialize(*result_arguments, &result_block)
  @__initial_result_arguments__ = result_arguments
  @__result_parameters__, @__result_options__ = __extract_result_attributes__(result_arguments)
  @__result_block__ = result_block
  __after_initialize__
end

Instance Method Details

#callback?Boolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



47
48
49
# File 'lib/smart_core/operation/result/basic.rb', line 47

def callback?
  false
end

#failure?Boolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



31
32
33
# File 'lib/smart_core/operation/result/basic.rb', line 31

def failure?
  false
end

#fatal?Boolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



39
40
41
# File 'lib/smart_core/operation/result/basic.rb', line 39

def fatal?
  false
end

#success?Boolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



23
24
25
# File 'lib/smart_core/operation/result/basic.rb', line 23

def success?
  false
end