Class: PuppetRestClient::PE::Catalog
- Defined in:
- lib/puppet-rest/pe/entities/catalog.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
Returns the value of attribute classes.
-
#document_type ⇒ Object
Returns the value of attribute document_type.
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = Mash.new) ⇒ Catalog
constructor
A new instance of Catalog.
Methods inherited from Base
#[], attr_reader, get, get_or_new, identity_map, #keys, #resource, #title, #update
Constructor Details
#initialize(attrs = Mash.new) ⇒ Catalog
Returns a new instance of Catalog.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 5 def initialize(attrs=Mash.new) super @tags = attrs['data']['tags'] @name = attrs['data']['name'] @version = attrs['data']['version'] @environment = attrs['data']['environment'] @resources = attrs['data']['resources'] @edges = attrs['data']['edges'] @classes = attrs['data']['classes'] end |
Instance Attribute Details
#classes ⇒ Object
Returns the value of attribute classes.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def classes @classes end |
#document_type ⇒ Object
Returns the value of attribute document_type.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def document_type @document_type end |
#edges ⇒ Object
Returns the value of attribute edges.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def edges @edges end |
#environment ⇒ Object
Returns the value of attribute environment.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def environment @environment end |
#metadata ⇒ Object
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def name @name end |
#resources ⇒ Object
Returns the value of attribute resources.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def resources @resources end |
#tags ⇒ Object
Returns the value of attribute tags.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def @tags end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/puppet-rest/pe/entities/catalog.rb', line 3 def version @version end |