class Keybase::Core::Dump

A dump object containing hashes, IDs and data links from which a mirror can be configured.

Attributes

changes_from_parent[R]
changes_sha256[R]
created_at[R]
full_data[R]
full_data_sha256[R]
id[R]
parent_dump_id[R]

Public Class Methods

all() click to toggle source

Retrieve the dump history from Keybase

@return [[Keybase::Dump]] a collection of all Keybase dumps

# File lib/keybase-core/models/dump.rb, line 22
def self.all
  Request::Dump.all.map{|dump| new(dump)}
end
latest() click to toggle source

Retrieve the latest dump from Keybase

@return [Keybase::Dump] latest Keybase dump

# File lib/keybase-core/models/dump.rb, line 29
def self.latest
  new(Request::Dump.latest)
end
new(params) click to toggle source
# File lib/keybase-core/models/dump.rb, line 9
def initialize(params)
  @id = params['dump_id']
  @full_data = params['full_data']
  @full_data_sha256 = params['full_data_sha256']
  @parent_dump_id = params['parent_dump_id']
  @changes_from_parent = params['changes_from_parent']
  @changes_sha256 = params['changes_sha256']
  @created_at = Time.at(params['ctime'])
end