Class: Raml::ParametizedReference

Inherits:
Reference show all
Defined in:
lib/raml/node/parametized_reference.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#name, #parent

Instance Method Summary collapse

Constructor Details

#initialize(name, parameters = {}, parent) ⇒ ParametizedReference

Returns a new instance of ParametizedReference.

Parameters:

  • name (String)

    the resource type or trait name.

  • parameters (Hash<String,String>) (defaults to: {})

    parameters to interpolate when instantiating the resouce type or trait.

  • parent (Raml::Node)

    the parent node.



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

#parametersHash<String,String>

Returns parameters to interpolate when instantiating the resouce type or trait.

Returns:

  • (Hash<String,String>)

    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