class Gobbler::Volume

Public Class Methods

list(opts = {}) click to toggle source

@option opts [Integer] :limit The number of records to return @option opts [Integer] :offset The number of records to offset the

results (useful for paging)

@return [Array<Volume>] an array of volumes

# File lib/gobbler/volume.rb, line 19
def self.list(opts = {})
  opts[:offset] ||= 0
  ::Gobbler.request("client_volume/sync_ask", options: opts)["updates"].map {|volume| new(volume)}
end

Public Instance Methods

connected?() click to toggle source

@return [Boolean] If the volume is currently connected to a machine

# File lib/gobbler/volume.rb, line 25
def connected?
  currently_connected
end