class Nucleo::Models::CheckTypes::Base

Public Class Methods

new(attributes={}) click to toggle source

Return an instance of the Rule Type domain model

@param attributes [Hash]

@return [Nucleo::Models::RuleType::Base]

# File lib/nucleo/models/check_types/base.rb, line 12
def initialize(attributes={})
  @attributes = attributes
end

Public Instance Methods

elements() click to toggle source

Returns the elements in the rule

@return [String]

# File lib/nucleo/models/check_types/base.rb, line 19
def elements
  Nucleo::Models::Elements.new(@attributes['elements'])
end