Class: ActiveCMIS::AtomicType::Decimal
- Inherits:
-
CommonBase
- Object
- CommonBase
- ActiveCMIS::AtomicType::Decimal
- Defined in:
- lib/active_cmis/atomic_types.rb
Overview
Qarning: Precision is ignored?
Instance Attribute Summary collapse
-
#max_value ⇒ Object
readonly
Returns the value of attribute max_value.
-
#min_value ⇒ Object
readonly
Returns the value of attribute min_value.
-
#precision ⇒ Object
readonly
Returns the value of attribute precision.
Instance Method Summary collapse
- #can_handle?(value) ⇒ Boolean
-
#initialize(precision = nil, min_value = nil, max_value = nil) ⇒ Decimal
constructor
A new instance of Decimal.
- #to_s ⇒ Object
Methods inherited from CommonBase
Constructor Details
#initialize(precision = nil, min_value = nil, max_value = nil) ⇒ Decimal
Returns a new instance of Decimal.
53 54 55 |
# File 'lib/active_cmis/atomic_types.rb', line 53 def initialize(precision = nil, min_value = nil, max_value = nil) @precision, @min_value, @max_value = precision, min_value, max_value end |
Instance Attribute Details
#max_value ⇒ Object (readonly)
Returns the value of attribute max_value.
52 53 54 |
# File 'lib/active_cmis/atomic_types.rb', line 52 def max_value @max_value end |
#min_value ⇒ Object (readonly)
Returns the value of attribute min_value.
52 53 54 |
# File 'lib/active_cmis/atomic_types.rb', line 52 def min_value @min_value end |
#precision ⇒ Object (readonly)
Returns the value of attribute precision.
52 53 54 |
# File 'lib/active_cmis/atomic_types.rb', line 52 def precision @precision end |