Class: Uorm::Attributes::Type::String

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

Class Method Summary collapse

Class Method Details

.as_json(value) ⇒ Object



61
62
63
# File 'lib/uorm/attributes/type.rb', line 61

def as_json value
  convert value
end

.convert(value) ⇒ Object



57
58
59
# File 'lib/uorm/attributes/type.rb', line 57

def convert value
  value.to_s
end