Class: Swagger::URI

Inherits:
String
  • Object
show all
Defined in:
lib/swagger/uri.rb

Overview

Class representing a URI. Backed by Addressable::URI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ URI

Returns a new instance of URI


6
7
8
9
# File 'lib/swagger/uri.rb', line 6

def initialize(string)
  @uri = Addressable::URI.heuristic_parse string
  super
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri


5
6
7
# File 'lib/swagger/uri.rb', line 5

def uri
  @uri
end