Class: Raml::ParametizedReference
- Defined in:
- lib/raml/node/parametized_reference.rb
Direct Known Subclasses
ResourceTypeReference, SecuritySchemeReference, TraitReference
Instance Attribute Summary collapse
-
#parameters ⇒ Hash<String,String>
Parameters to interpolate when instantiating the resouce type or trait.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, parameters = {}, parent) ⇒ ParametizedReference
constructor
A new instance of ParametizedReference.
Constructor Details
#initialize(name, parameters = {}, parent) ⇒ ParametizedReference
Returns a new instance of ParametizedReference.
10 11 12 13 |
# File 'lib/raml/node/parametized_reference.rb', line 10 def initialize(name, parameters={}, parent) super name, parent @parameters = parameters end |
Instance Attribute Details
#parameters ⇒ Hash<String,String>
Returns parameters to interpolate when instantiating the resouce type or trait.
5 6 7 |
# File 'lib/raml/node/parametized_reference.rb', line 5 def parameters @parameters end |