Method: PrintNode::Client#scales

Defined in:
lib/printnode/client.rb

#scales(computer_id) ⇒ Object

Sends a GET request to /computer/(computer_id)/scales

Returns:

An Array of OpenStruct objects. The design of this Object will be the same as the ones on the PrintNode API docs.

Parameters:

  • computer_id (String)

    a set of computers to be got.

See Also:



374
375
376
377
378
379
380
# File 'lib/printnode/client.rb', line 374

def scales(computer_id)
  end_point_url = '/computer/' +
                  escape_with_types(computer_id) +
                  '/scales/'
  response_object = JSON.parse(get(end_point_url).body)
  parse_array_to_struct(response_object)
end