Class: Swagger::URITemplate

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_templateObject (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