Class: PuppetRestClient::DB::Node
- Defined in:
- lib/puppet-rest/db/entities/node.rb
Instance Attribute Summary collapse
-
#catalog_timestamp ⇒ Object
readonly
Returns the value of attribute catalog_timestamp.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#deactivated ⇒ Object
readonly
Returns the value of attribute deactivated.
-
#facts_timestamp ⇒ Object
readonly
Returns the value of attribute facts_timestamp.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#report_timestamp ⇒ Object
readonly
Returns the value of attribute report_timestamp.
Attributes inherited from Base
Instance Method Summary collapse
- #facts ⇒ Object
-
#initialize(attrs = Mash.new) ⇒ Node
constructor
A new instance of Node.
- #resources ⇒ Object
Methods inherited from Base
#[], attr_reader, get, get_or_new, identity_map, #keys, #resource, #title, #update
Constructor Details
Instance Attribute Details
#catalog_timestamp ⇒ Object (readonly)
Returns the value of attribute catalog_timestamp.
3 4 5 |
# File 'lib/puppet-rest/db/entities/node.rb', line 3 def @catalog_timestamp end |
#connection ⇒ Object
Returns the value of attribute connection.
4 5 6 |
# File 'lib/puppet-rest/db/entities/node.rb', line 4 def connection @connection end |
#deactivated ⇒ Object (readonly)
Returns the value of attribute deactivated.
3 4 5 |
# File 'lib/puppet-rest/db/entities/node.rb', line 3 def deactivated @deactivated end |
#facts_timestamp ⇒ Object (readonly)
Returns the value of attribute facts_timestamp.
3 4 5 |
# File 'lib/puppet-rest/db/entities/node.rb', line 3 def @facts_timestamp end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/puppet-rest/db/entities/node.rb', line 3 def name @name end |
#report_timestamp ⇒ Object (readonly)
Returns the value of attribute report_timestamp.
3 4 5 |
# File 'lib/puppet-rest/db/entities/node.rb', line 3 def @report_timestamp end |
Instance Method Details
#facts ⇒ Object
12 13 14 15 |
# File 'lib/puppet-rest/db/entities/node.rb', line 12 def facts return [] if @connection.nil? @connection.node_facts self.name end |
#resources ⇒ Object
17 18 19 20 |
# File 'lib/puppet-rest/db/entities/node.rb', line 17 def resources return [] if @connection.nil? @connection.node_resources self.name end |