Class: Code42::Computer

Inherits:
Resource show all
Defined in:
lib/code42/computer.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #client

Instance Method Summary collapse

Methods inherited from Resource

attribute, collection_from_response, deserialize, deserialize_and_initialize, from_response, #initialize, serialize, #serialize, serializer

Constructor Details

This class inherits a constructor from Code42::Resource

Instance Method Details

#blockObject



10
11
12
# File 'lib/code42/computer.rb', line 10

def block
  client.block_computer(id)
end

#unblockObject



6
7
8
# File 'lib/code42/computer.rb', line 6

def unblock
  client.unblock_computer(id)
end