Sha256: 679f55f71e3878a1598318b47e877704f268b624fe4ceaa3d9a85ccbd9aabd29

Contents?: true

Size: 523 Bytes

Versions: 23

Compression:

Stored size: 523 Bytes

Contents

require "forwardable"

module Jess
  # 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.
  class Computer < Resource
    extend Forwardable
    def_delegators :general, :id, :name

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

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
jess-1.4.1 lib/jess/computer.rb
jess-1.4.0 lib/jess/computer.rb
jess-1.3.2 lib/jess/computer.rb
jess-1.3.1 lib/jess/computer.rb
jess-1.3.0 lib/jess/computer.rb
jess-1.2.5 lib/jess/computer.rb
jess-1.2.4 lib/jess/computer.rb
jess-1.2.3 lib/jess/computer.rb
jess-1.2.2 lib/jess/computer.rb
jess-1.2.1 lib/jess/computer.rb
jess-1.2.0 lib/jess/computer.rb
jess-1.1.3 lib/jess/computer.rb
jess-1.1.2 lib/jess/computer.rb
jess-1.1.1 lib/jess/computer.rb
jess-1.1.0 lib/jess/computer.rb
jess-1.0.0 lib/jess/computer.rb
jess-0.10.1 lib/jess/computer.rb
jess-0.10.0 lib/jess/computer.rb
jess-0.9.0 lib/jess/computer.rb
jess-0.8.0 lib/jess/computer.rb