class Structural::Model::TypeCasts::Integer

Public Class Methods

cast(value) click to toggle source
# File lib/structural/model/type_casts.rb, line 38
def self.cast(value)
  value.to_i
end
type() click to toggle source
# File lib/structural/model/type_casts.rb, line 34
def self.type
  ::Integer
end