Class: ActiveRecord::ConnectionAdapters::MSSQL::Type::SmallMoney
- Inherits:
-
Decimal
- Object
- Type::Decimal
- Decimal
- ActiveRecord::ConnectionAdapters::MSSQL::Type::SmallMoney
- Defined in:
- lib/arjdbc/mssql/types/numeric_types.rb
Instance Method Summary collapse
-
#initialize(precision: nil, limit: nil, scale: nil) ⇒ SmallMoney
constructor
A new instance of SmallMoney.
- #type ⇒ Object
Constructor Details
#initialize(precision: nil, limit: nil, scale: nil) ⇒ SmallMoney
Returns a new instance of SmallMoney.
49 50 51 52 53 |
# File 'lib/arjdbc/mssql/types/numeric_types.rb', line 49 def initialize(precision: nil, limit: nil, scale: nil) super @precision = 10 @scale = 4 end |
Instance Method Details
#type ⇒ Object
55 56 57 |
# File 'lib/arjdbc/mssql/types/numeric_types.rb', line 55 def type :smallmoney end |