class Gobbler::Folder

Public Class Methods

list(opts = {}) click to toggle source

@return [Array<Folder>] An array of Folders

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

Public Instance Methods

assets() click to toggle source

@return [Hash] The assets for this folder

# File lib/gobbler/folder.rb, line 31
def assets
  ::Gobbler.unpack json["dir"]["assets_packed"]
end
guid() click to toggle source

@return [String] The guid for the folder

# File lib/gobbler/folder.rb, line 21
def guid
  user_data_guid
end
volume() click to toggle source

@return [Volume] The volume that this folder is on

# File lib/gobbler/folder.rb, line 26
def volume
  ::Gobbler::Volume.get(volume_guid)
end