Module: Yobi::BackupMessageWrapper
- Defined in:
- lib/yobi/repository/backup.rb,
sig/yobi.rbs
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.call(raw) ⇒ BackupStatus, ...
116 117 118 119 120 121 122 123 124 |
# File 'lib/yobi/repository/backup.rb', line 116 def self.call(raw) case raw["message_type"] when "status" then BackupStatus.new(raw) when "error" then BackupError.new(raw) when "verbose_status" then BackupVerboseStatus.new(raw) when "summary" then BackupSummary.new(raw) else raw end end |