Module: Yobi::CheckMessageWrapper
- Defined in:
- lib/yobi/repository/check.rb,
sig/yobi.rbs
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.call(raw) ⇒ CheckError, ...
31 32 33 34 35 36 37 |
# File 'lib/yobi/repository/check.rb', line 31 def self.call(raw) case raw["message_type"] when "error" then CheckError.new(raw) when "summary" then CheckSummary.new(raw) else raw end end |