Sha256: e5eaebb1c04c855b479fd85cc64bedc059fbdd532eb81e7a2d423623e0487d6e

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

require 'ur' unless Object.const_defined?(:Ur)

module Ur
  module Request
    include RequestAndResponse
    include SubUr

    def addressable_uri
      uri ? Addressable::URI.parse(uri) : nil
    end
    def addressable_uri=(auri)
      self.uri = auri ? auri.normalize.to_s : nil
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ur-0.2.5 lib/ur/request.rb
ur-0.2.4 lib/ur/request.rb
ur-0.2.3 lib/ur/request.rb
ur-0.2.2 lib/ur/request.rb
ur-0.2.1 lib/ur/request.rb
ur-0.2.0 lib/ur/request.rb