class ForestClient::QueryAgent
Public Class Methods
new(org_id)
click to toggle source
# File lib/forest-client.rb, line 96 def initialize(org_id) @org_id = org_id end
Public Instance Methods
run()
click to toggle source
# File lib/forest-client.rb, line 100 def run forest = Forest.new(@org_id) printers = forest.get_printers if printers printers.each do |printer| forest.update_printer(printer) forest.update_status(printer) end end end