Class: DataMapper::Property::Numeric
- Inherits:
-
Object
- Object
- DataMapper::Property
- Object
- DataMapper::Property::Numeric
- Includes:
- PassThroughLoadDump, Typecast::Numeric
- Defined in:
- lib/dm-core/property/numeric.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_PRECISION =
10
- DEFAULT_NUMERIC_MIN =
0
- DEFAULT_NUMERIC_MAX =
2**31-1
Constants inherited from DataMapper::Property
OPTIONS, PRIMITIVES, VISIBILITY_OPTIONS
Instance Attribute Summary collapse
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
-
#precision ⇒ Object
readonly
Returns the value of attribute precision.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
Attributes inherited from DataMapper::Property
#allow_blank, #allow_nil, #default, #instance_variable_name, #model, #name, #options, #primitive, #reader_visibility, #repository_name, #required, #type, #writer_visibility
Method Summary
Methods included from Typecast::Numeric
Methods included from PassThroughLoadDump
Methods inherited from Object
Methods inherited from DataMapper::Property
accept_options, accepted_options, #allow_blank?, #allow_nil?, #bind, #custom?, descendants, determine_class, #field, find_class, #get, #get!, #hash, #index, inherited, #inspect, #key?, #lazy?, #lazy_load, #lazy_load_properties, #loaded?, nullable, options, #primitive?, #properties, #required?, #serial?, #set, #set!, #typecast, #unique?, #unique_index, #valid?
Methods included from Chainable
Methods included from Deprecate
Methods included from Equalizer
Methods included from Subject
Methods included from Assertions
Instance Attribute Details
#max ⇒ Object (readonly)
Returns the value of attribute max.
10 11 12 |
# File 'lib/dm-core/property/numeric.rb', line 10 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
10 11 12 |
# File 'lib/dm-core/property/numeric.rb', line 10 def min @min end |
#precision ⇒ Object (readonly)
Returns the value of attribute precision.
10 11 12 |
# File 'lib/dm-core/property/numeric.rb', line 10 def precision @precision end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
10 11 12 |
# File 'lib/dm-core/property/numeric.rb', line 10 def scale @scale end |