Class: Uorm::Attributes::Type::Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/uorm/attributes/type.rb

Class Method Summary collapse

Class Method Details

.as_json(value) ⇒ Object



11
12
13
# File 'lib/uorm/attributes/type.rb', line 11

def as_json value
  convert value
end

.convert(value) ⇒ Object



7
8
9
# File 'lib/uorm/attributes/type.rb', line 7

def convert value
  value.to_i
end