Class: Swagger::URITemplate
- Inherits:
-
String
- Object
- String
- Swagger::URITemplate
- Defined in:
- lib/swagger/uri_template.rb
Overview
Class representing a URI Template. Backed by Addressable::Template.
Instance Attribute Summary collapse
-
#uri_template ⇒ Object
readonly
Returns the value of attribute uri_template.
Instance Method Summary collapse
-
#initialize(string) ⇒ URITemplate
constructor
A new instance of URITemplate.
Constructor Details
#initialize(string) ⇒ URITemplate
Returns a new instance of URITemplate.
6 7 8 9 |
# File 'lib/swagger/uri_template.rb', line 6 def initialize(string) @uri_template = Addressable::Template.new(string) super end |
Instance Attribute Details
#uri_template ⇒ Object (readonly)
Returns the value of attribute uri_template.
5 6 7 |
# File 'lib/swagger/uri_template.rb', line 5 def uri_template @uri_template end |