Class: Resto::Property::String

Inherits:
Object
  • Object
show all
Includes:
Resto::Property
Defined in:
lib/resto/property/string.rb,
lib/resto/property/string.rb

Instance Method Summary collapse

Methods included from Resto::Property

#attribute_key, #attribute_key_as_string, #initialize, #remote_key, #validate, #validate_inclusion, #validate_length, #validate_presence

Instance Method Details

#cast(value, errors = nil) ⇒ Object



13
14
15
# File 'lib/resto/property/string.rb', line 13

def cast(value, errors=nil)
  value.to_s
end