Class: Structural::Model::TypeCasts::Integer
- Inherits:
-
Cast
- Object
- Cast
- Structural::Model::TypeCasts::Integer
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
53
54
55
|
# File 'lib/structural/model/type_casts.rb', line 53
def self.type
::Integer
end
|
Instance Method Details
#conversion ⇒ Object
57
58
59
|
# File 'lib/structural/model/type_casts.rb', line 57
def conversion
value.to_i
end
|