Class: Aequitas::VirtusIntegration::InlineAttributeRuleExtractor::Boolean

Inherits:
Object
  • Object
show all
Defined in:
lib/aequitas/virtus_integration/inline_attribute_rule_extractor/boolean.rb

Instance Attribute Summary

Attributes inherited from Object

#attribute

Instance Method Summary collapse

Methods inherited from Object

#extract, #extract_primitive_type_rule, #initialize, #options

Constructor Details

This class inherits a constructor from Aequitas::VirtusIntegration::InlineAttributeRuleExtractor::Object

Instance Method Details

#extract_presence_ruleObject



10
11
12
# File 'lib/aequitas/virtus_integration/inline_attribute_rule_extractor/boolean.rb', line 10

def extract_presence_rule
  Rule::Presence::NotNil.new(attribute.name)
end