Class: Zm::Client::BackupJsnsInitializer
- Inherits:
-
Object
- Object
- Zm::Client::BackupJsnsInitializer
- 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 |
# File 'lib/zm/client/backup/backup_jsns_initializer.rb', line 8 def create(parent, json) Backup.new(parent).tap do |item| update(item, json) end end |
.update(item, json) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/zm/client/backup/backup_jsns_initializer.rb', line 14 def update(item, json) item.label = json.delete(:label) item.type = json.delete(:type) item.aborted = json.delete(:aborted) item.start = json.delete(:start) item.end = json.delete(:end) item.minRedoSeq = json.delete(:minRedoSeq) item.maxRedoSeq = json.delete(:maxRedoSeq) item.live = json.delete(:live) item.accounts = json.delete(:accounts) end |