Class: Swagger::URI
- Inherits:
-
String
- Object
- String
- Swagger::URI
- Defined in:
- lib/swagger/uri.rb
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.
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
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
3 4 5 |
# File 'lib/swagger/uri.rb', line 3 def uri @uri end |