Class: Nucleo::Models::CheckTypes::Base

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/nucleo/models/check_types/base.rb

Direct Known Subclasses

Count, Length, NotExists

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Nucleo::Models::RuleType::Base

Return an instance of the Rule Type domain model

Parameters:

  • attributes (Hash) (defaults to: {})


12
13
14
# File 'lib/nucleo/models/check_types/base.rb', line 12

def initialize(attributes={})
  @attributes = attributes
end

Instance Method Details

#elementsString

Returns the elements in the rule

Returns:

  • (String)


19
20
21
# File 'lib/nucleo/models/check_types/base.rb', line 19

def elements
  Nucleo::Models::Elements.new(@attributes['elements'])
end