Class: Jess::Computer

Inherits:
Resource show all
Extended by:
Forwardable
Defined in:
lib/jess/computer.rb

Overview

A Computer record returned from JSS. The data mirrors the structure of the JSS Computer JSON representation, with sections for general, hardware, extension attributes, etc.

Instance Attribute Summary

Attributes inherited from Resource

#_json

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #to_hash

Constructor Details

This class inherits a constructor from Jess::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Jess::Resource

Instance Method Details

#extension_attributesObject



11
12
13
# File 'lib/jess/computer.rb', line 11

def extension_attributes
  @ext_attrs ||= ExtensionAttributes.new(_json["extension_attributes"])
end

#inspectObject



15
16
17
# File 'lib/jess/computer.rb', line 15

def inspect
  "Jess::Computer<##{id}, #{name}>"
end