class Structural::Model::TypeCasts::Money

Public Class Methods

cast(value) click to toggle source
# File lib/structural/model/type_casts.rb, line 86
def self.cast(value)
  ::Money.new value.to_i
end
type() click to toggle source
# File lib/structural/model/type_casts.rb, line 82
def self.type
  ::Money
end