Class: DataMapper::Types::URI

Public Visibility

Public Class Method Summary

dump(value, property)
load(value, property)

Public Class Methods Inherited from DataMapper::Type

bind, configure, inherited, options, primitive

Public Instance Methods Inherited from Object

validatable?

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