Class: Structural::Model::TypeCasts::Money
- Inherits:
-
Cast
- Object
- Cast
- Structural::Model::TypeCasts::Money
show all
- Defined in:
- lib/structural/model/type_casts.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Cast
#cast, #initialize, #type
Class Method Details
.type ⇒ Object
101
102
103
|
# File 'lib/structural/model/type_casts.rb', line 101
def self.type
::Money
end
|
Instance Method Details
#conversion ⇒ Object
105
106
107
|
# File 'lib/structural/model/type_casts.rb', line 105
def conversion
::Money.new value.to_i
end
|