Class: Structural::Model::TypeCasts::Integer

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

Class Method Summary collapse

Class Method Details

.cast(value) ⇒ Object



38
39
40
# File 'lib/structural/model/type_casts.rb', line 38

def self.cast(value)
  value.to_i
end

.typeObject



34
35
36
# File 'lib/structural/model/type_casts.rb', line 34

def self.type
  ::Integer
end