Class: SmartCore::Schema::Checker::Rules::Result::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/schema/checker/rules/result/base.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

Failure, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ 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:

  • key (Hash)

    a customizable set of options

  • value (Hash)

    a customizable set of options

Options Hash (key:):

  • (String)

Options Hash (value:):

  • (Any)

Since:

  • 0.1.0



24
25
26
27
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 24

def initialize(key:, value:)
  @key = key
  @value = value
end

Instance Attribute Details

#keyString (readonly)

Returns:

  • (String)

Since:

  • 0.1.0



10
11
12
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 10

def key
  @key
end

#valueAny (readonly)

Returns:

  • (Any)

Since:

  • 0.1.0



16
17
18
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 16

def value
  @value
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



41
42
43
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 41

def failure?
  false
end

#success?Boolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



33
34
35
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 33

def success?
  false
end