Sha256: 3bf92ed1448486810d06f1b6189da9995279629d2735b7d8cc01cabec8d54d9e

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 Bytes

Contents

module Swagger
  # Class representing a URI. Backed by Addressable::URI.
  # @see http://en.wikipedia.org/wiki/Uniform_resource_identifier
  class URI < String
    attr_reader :uri
    def initialize(string)
      @uri = Addressable::URI.heuristic_parse string
      super
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
swagger-parser-0.2.6 lib/swagger/uri.rb
swagger-parser-0.2.5 lib/swagger/uri.rb
swagger-core-0.3.0 lib/swagger/uri.rb
swagger-core-0.2.3 lib/swagger/uri.rb
swagger-core-0.2.2 lib/swagger/uri.rb
swagger-core-0.2.1 lib/swagger/uri.rb