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

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

Direct Known Subclasses

Failure, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(extra_keys, matcher_options) ⇒ 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:

Since:

  • 0.1.0

Version:

  • 0.3.0



27
28
29
30
# File 'lib/smart_core/schema/checker/rules/extra_keys/result.rb', line 27

def initialize(extra_keys, matcher_options)
  @extra_keys = extra_keys
  @matcher_options = matcher_options
end

Instance Attribute Details

#extra_keysArray<String> (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<String>)

Since:

  • 0.3.0



12
13
14
# File 'lib/smart_core/schema/checker/rules/extra_keys/result.rb', line 12

def extra_keys
  @extra_keys
end

#matcher_optionsSmartCore::Schema::Checker::Reconciler::Matcher::Options (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.



18
19
20
# File 'lib/smart_core/schema/checker/rules/extra_keys/result.rb', line 18

def matcher_options
  @matcher_options
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


# File 'lib/smart_core/schema/checker/rules/extra_keys/result.rb', line 35

#success?Boolean

Returns:

  • (Boolean)


# File 'lib/smart_core/schema/checker/rules/extra_keys/result.rb', line 32