Class: DataMapper::Types::URI
- Object
- DataMapper::Type
- DataMapper::Types::URI
Constants Inherited from DataMapper::Type
Public Visibility
Public Instance Methods Inherited from Object
Public Class Method Details
dump
public
dump(value, property)
[View source]
13 14 15 16
# File 'dm-more/dm-types/lib/dm-types/uri.rb', line 13 def self.dump(value, property) return nil if value.nil? value.to_s end
load
public
load(value, property)
[View source]
9 10 11
# File 'dm-more/dm-types/lib/dm-types/uri.rb', line 9 def self.load(value, property) Addressable::URI.parse(value) end