Class: Zm::Client::BackupJsnsInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/backup/backup_jsns_initializer.rb

Overview

class for initialize backup

Class Method Summary collapse

Class Method Details

.create(parent, json) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/zm/client/backup/backup_jsns_initializer.rb', line 8

def create(parent, json)
  item = Backup.new(parent)

  item.label = json[:label]
  item.type = json[:type]
  item.aborted = json[:aborted]
  item.start = json[:start].to_i
  item.end = json[:end].to_i
  item.minRedoSeq = json[:minRedoSeq]
  item.maxRedoSeq = json[:maxRedoSeq]
  item.live = json[:live]
  item.accounts = json[:accounts]

  item
end