Class: Gobbler::Machine

Inherits:
Base
  • Object
show all
Includes:
Mappable
Defined in:
lib/gobbler/machine.rb

Instance Attribute Summary

Attributes inherited from Base

#json

Class Method Summary collapse

Methods included from Mappable

#city, #coordinates, included, #lat, #lng, #zip

Methods inherited from Base

#base_attr, get, #initialize

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.

Returns:

  • (Array<Machine>)

    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