Class: EmailAddress::EmailAddressType
- Inherits:
-
ActiveRecord::Type::Value
- Object
- ActiveRecord::Type::Value
- EmailAddress::EmailAddressType
- Defined in:
- lib/email_address/email_address_type.rb
Instance Method Summary collapse
-
#cast(value) ⇒ Object
From user input, setter.
-
#deserialize(value) ⇒ Object
From a database value.
-
#serialize(value) ⇒ Object
To a database value (string).
Instance Method Details
#cast(value) ⇒ Object
From user input, setter
36 37 38 |
# File 'lib/email_address/email_address_type.rb', line 36 def cast(value) super(Address.new(value).normal) end |