Class: Bluepine::Attributes::NumberAttribute
- Defined in:
- lib/bluepine/attributes/number_attribute.rb
Direct Known Subclasses
Constant Summary collapse
- RULES =
{ max: { group: :numericality, name: :less_than_or_equal, }, min: { group: :numericality, name: :greater_than_or_equal, }, }.freeze
Constants included from Bluepine::Assertions
Bluepine::Assertions::Error, Bluepine::Assertions::KeyError, Bluepine::Assertions::SubsetError
Instance Attribute Summary
Attributes inherited from Attribute
Instance Method Summary collapse
Methods inherited from Attribute
#attributes, #default, #deprecated, #description, #format, #if, #in, #initialize, #match, #method, #null, #of, #options, #private, #required, #serializable?, #spec, #spec_uri, #type, #unless, #value
Methods included from Validators::Validatable
Methods included from Validators::Normalizable
Methods included from Serializers::Serializable
Methods included from Bluepine::Assertions
#assert, #assert_in, #assert_kind_of, #assert_not, #assert_subset_of, included
Constructor Details
This class inherits a constructor from Bluepine::Attributes::Attribute
Instance Method Details
#native_type ⇒ Object
19 20 21 |
# File 'lib/bluepine/attributes/number_attribute.rb', line 19 def native_type "number" end |