Class: SmartCore::Operation::Result::Error::Code

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

Overview

Since:

  • 0.1.0

Constant Summary collapse

EMPTY_CODE =

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

Returns:

  • (NilClass)

Since:

  • 0.1.0

nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ 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:

  • code (String, Symbol, NilClass, Any)

Since:

  • 0.1.0



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

def initialize(code)
  @code = code
end

Instance Attribute Details

#codeString, ... (readonly) Also known as: identifier

Returns:

  • (String, Symbol, NilClass, Any)

Since:

  • 0.1.0



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

def code
  @code
end