Sha256: 70244f145540397557bfdbece5e95b9cd5d96afff227210d249305d86bfd0764

Contents?: true

Size: 300 Bytes

Versions: 4

Compression:

Stored size: 300 Bytes

Contents

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

class Ur
  class 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

4 entries across 4 versions & 1 rubygems

Version Path
ur-0.1.0 lib/ur/request.rb
ur-0.0.4 lib/ur/request.rb
ur-0.0.3 lib/ur/request.rb
ur-0.0.2 lib/ur/request.rb