Sha256: 64b45b0aab7d71e54db6bdbfe036ed130b245d6ca3bd90cba5560a94bfff34d2

Contents?: true

Size: 303 Bytes

Versions: 6

Compression:

Stored size: 303 Bytes

Contents

module Swagger
  # Class representing a URI Template. Backed by Addressable::Template.
  # @see http://tools.ietf.org/html/rfc6570
  class URITemplate < String
    attr_reader :uri_template
    def initialize(string)
      @uri_template = Addressable::Template.new(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_template.rb
swagger-parser-0.2.5 lib/swagger/uri_template.rb
swagger-core-0.3.0 lib/swagger/uri_template.rb
swagger-core-0.2.3 lib/swagger/uri_template.rb
swagger-core-0.2.2 lib/swagger/uri_template.rb
swagger-core-0.2.1 lib/swagger/uri_template.rb