Class: Swagger::URI

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ URI

Returns a new instance of URI.



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

def initialize(string)
  # FIXME: Is it possible to initialize with heuristic parse once?
  @uri = Addressable::URI.heuristic_parse string
  super
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



3
4
5
# File 'lib/swagger/uri.rb', line 3

def uri
  @uri
end