Class: Structural::Model::TypeCasts::Money

Inherits:
Object
  • Object
show all
Defined in:
lib/structural/model/type_casts.rb

Class Method Summary collapse

Class Method Details

.cast(value) ⇒ Object



86
87
88
# File 'lib/structural/model/type_casts.rb', line 86

def self.cast(value)
  ::Money.new value.to_i
end

.typeObject



82
83
84
# File 'lib/structural/model/type_casts.rb', line 82

def self.type
  ::Money
end