Class: PuppetRestClient::DB::Resource

Inherits:
Base
  • Object
show all
Defined in:
lib/puppet-rest/db/entities/resource.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, get, get_or_new, identity_map, #keys, #update

Constructor Details

#initialize(attrs = Mash.new) ⇒ Resource

Returns a new instance of Resource.



5
6
7
8
9
# File 'lib/puppet-rest/db/entities/resource.rb', line 5

def initialize(attrs=Mash.new)
  super
  @attrs['parameters'] ||= Mash.new
  @attrs['tags'] ||= Mash.new
end

Instance Attribute Details

#certnameObject (readonly)

Returns the value of attribute certname.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def certname
  @certname
end

#exportedObject (readonly)

Returns the value of attribute exported.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def exported
  @exported
end

#parametersObject (readonly)

Returns the value of attribute parameters.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def parameters
  @parameters
end

#resourceObject (readonly)

Returns the value of attribute resource.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def resource
  @resource
end

#sourcefileObject (readonly)

Returns the value of attribute sourcefile.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def sourcefile
  @sourcefile
end

#sourcelineObject (readonly)

Returns the value of attribute sourceline.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def sourceline
  @sourceline
end

#tagsObject (readonly)

Returns the value of attribute tags.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/puppet-rest/db/entities/resource.rb', line 3

def type
  @type
end