Class: Raml::Root
- Inherits:
-
Object
- Object
- Raml::Root
- Defined in:
- lib/raml/root.rb
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#base_uri_parameters ⇒ Object
Returns the value of attribute base_uri_parameters.
-
#documentation ⇒ Object
Returns the value of attribute documentation.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#secured_by ⇒ Object
Returns the value of attribute secured_by.
-
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
-
#title ⇒ Object
Returns the value of attribute title.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Root
constructor
A new instance of Root.
- #path ⇒ Object
- #uri ⇒ Object
Constructor Details
#initialize ⇒ Root
Returns a new instance of Root.
6 7 8 9 |
# File 'lib/raml/root.rb', line 6 def initialize @resources = [] @documentation = [] end |
Instance Attribute Details
#base_uri ⇒ Object
Returns the value of attribute base_uri.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def base_uri @base_uri end |
#base_uri_parameters ⇒ Object
Returns the value of attribute base_uri_parameters.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def base_uri_parameters @base_uri_parameters end |
#documentation ⇒ Object
Returns the value of attribute documentation.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def documentation @documentation end |
#media_type ⇒ Object
Returns the value of attribute media_type.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def media_type @media_type end |
#resources ⇒ Object
Returns the value of attribute resources.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def resources @resources end |
#secured_by ⇒ Object
Returns the value of attribute secured_by.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def secured_by @secured_by end |
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def security_schemes @security_schemes end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def title @title end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/raml/root.rb', line 3 def version @version end |
Instance Method Details
#path ⇒ Object
15 16 17 |
# File 'lib/raml/root.rb', line 15 def path '' end |
#uri ⇒ Object
11 12 13 |
# File 'lib/raml/root.rb', line 11 def uri base_uri.sub('{version}', version.to_s) end |