Class: ActiveRecord::ConnectionAdapters::MSSQL::Type::Money
- Inherits:
-
Decimal
- Object
- Type::Decimal
- Decimal
- ActiveRecord::ConnectionAdapters::MSSQL::Type::Money
- Defined in:
- lib/arjdbc/mssql/types/numeric_types.rb
Instance Method Summary collapse
-
#initialize(precision: nil, limit: nil, scale: nil) ⇒ Money
constructor
A new instance of Money.
- #type ⇒ Object
Constructor Details
#initialize(precision: nil, limit: nil, scale: nil) ⇒ Money
Returns a new instance of Money.
38 39 40 41 42 |
# File 'lib/arjdbc/mssql/types/numeric_types.rb', line 38 def initialize(precision: nil, limit: nil, scale: nil) super @precision = 19 @scale = 4 end |
Instance Method Details
#type ⇒ Object
43 44 45 |
# File 'lib/arjdbc/mssql/types/numeric_types.rb', line 43 def type :money end |