Class: Puppet::Parser::AST::ResourceInstance

Inherits:
Branch show all
Defined in:
lib/puppet/parser/ast/resource_instance.rb

Overview

A simple container for a parameter for an object. Consists of a title and a set of parameters.

Constant Summary

Constants inherited from Puppet::Parser::AST

AST

Instance Attribute Summary collapse

Attributes inherited from Branch

#children, #pin

Attributes inherited from Puppet::Parser::AST

#file, #line, #parent, #pos, #scope

Instance Method Summary collapse

Methods inherited from Branch

#each

Methods included from Enumerable

#uniq

Methods inherited from Puppet::Parser::AST

#evaluate, #inspect, #safeevaluate

Methods included from Util::MethodHelper

#requiredopts, #set_options, #symbolize_options

Methods included from Util::Errors

#adderrorcontext, #devfail, #error_context, #exceptwrap, #fail

Constructor Details

#initialize(argshash) ⇒ ResourceInstance

Returns a new instance of ResourceInstance.



6
7
8
9
# File 'lib/puppet/parser/ast/resource_instance.rb', line 6

def initialize(argshash)
  Puppet.warn_once('deprecations', 'AST::ResourceInstance', _('Use of Puppet::Parser::AST::ResourceInstance is deprecated'))
  super(argshash)
end

Instance Attribute Details

#parametersObject

Returns the value of attribute parameters.



5
6
7
# File 'lib/puppet/parser/ast/resource_instance.rb', line 5

def parameters
  @parameters
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/puppet/parser/ast/resource_instance.rb', line 5

def title
  @title
end