Sha256: 9910ccae7a2ec3616c6fc46b993ca374be1060e5bde38c5d7ac80c2de96bdf3d

Contents?: true

Size: 266 Bytes

Versions: 14

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

module Sail
  module Types
    # Uri
    #
    # The Uri type returns an URI
    # object based on the string
    # saved in the database.
    class Uri < Type
      def to_value
        URI(@setting.value)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sail-3.6.1 lib/sail/types/uri.rb
sail-3.6.0 lib/sail/types/uri.rb
sail-3.5.1 lib/sail/types/uri.rb
sail-3.5.0 lib/sail/types/uri.rb
sail-3.4.0 lib/sail/types/uri.rb
sail-3.3.0 lib/sail/types/uri.rb
sail-3.2.4 lib/sail/types/uri.rb
sail-3.2.3 lib/sail/types/uri.rb
sail-3.2.2 lib/sail/types/uri.rb
sail-3.2.1 lib/sail/types/uri.rb
sail-3.2.0 lib/sail/types/uri.rb
sail-3.1.0 lib/sail/types/uri.rb
sail-3.0.1 lib/sail/types/uri.rb
sail-3.0.0 lib/sail/types/uri.rb