Module: Yobi::DiffMessageWrapper
- Defined in:
- lib/yobi/repository/diff.rb,
sig/yobi.rbs
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.call(raw) ⇒ DiffChange, ...
19 20 21 22 23 24 25 |
# File 'lib/yobi/repository/diff.rb', line 19 def self.call(raw) case raw["message_type"] when "change" then DiffChange.new(raw) when "statistics" then DiffStatistics.new(raw) else raw end end |