Class: Gobbler::Machine
- Includes:
- Mappable
- Defined in:
- lib/gobbler/machine.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.list(opts = {}) ⇒ Array<Machine>
Machines that have been connected to your account.
Methods included from Mappable
#city, #coordinates, included, #lat, #lng, #zip
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gobbler::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Gobbler::Base
Class Method Details
.list(opts = {}) ⇒ Array<Machine>
Returns Machines that have been connected to your account.
16 17 18 19 |
# File 'lib/gobbler/machine.rb', line 16 def self.list(opts = {}) opts[:offset] ||= 0 ::Gobbler.request("client_machine/sync_ask", options: opts)["updates"].map {|machine| new(machine)} end |