Class: Sail::Types::Uri

Inherits:
Type
  • Object
show all
Defined in:
lib/sail/types/uri.rb

Overview

Uri

The Uri type returns an URI object based on the string saved in the database.

Instance Method Summary collapse

Methods inherited from Type

#from, #initialize

Constructor Details

This class inherits a constructor from Sail::Types::Type

Instance Method Details

#to_valueObject



11
12
13
# File 'lib/sail/types/uri.rb', line 11

def to_value
  URI(@setting.value)
end