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



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

def block
  client.block_computer(id)
end

#unblockObject



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

def unblock
  client.unblock_computer(id)
end