Module: Yobi::LsMessageWrapper
- Defined in:
- lib/yobi/repository/ls.rb,
sig/yobi.rbs
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.call(raw) ⇒ Snapshot, ...
39 40 41 42 43 44 45 |
# File 'lib/yobi/repository/ls.rb', line 39 def self.call(raw) case raw["message_type"] when "snapshot" then Snapshot.new(raw) when "node" then Node.new(raw) else raw end end |