Class: Swagger::URI
- Inherits:
-
String
- Object
- String
- Swagger::URI
- Defined in:
- lib/swagger/uri.rb
Overview
Class representing a URI. Backed by Addressable::URI.
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(string) ⇒ URI
constructor
A new instance of URI.
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
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
5 6 7 |
# File 'lib/swagger/uri.rb', line 5 def uri @uri end |