Method: PrintNode::Client#latest_client
- Defined in:
- lib/printnode/client.rb
#latest_client(os = 'windows') ⇒ Object
Sends a GET request to /download/client/(os)
Returns:
An OpenStruct object of the response. The design of this Object will be the same as the ones on the PrintNode API docs.
323 324 325 326 |
# File 'lib/printnode/client.rb', line 323 def latest_client(os = 'windows') end_point_url = '/download/client/' + escape_with_types(os.downcase) OpenStruct.new JSON.parse(get(end_point_url).body) end |