Sha256: 4248e8b617ddfcee046e8199a1f302bc83efe6ed1fa211760fa27a80156ef5e5
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
module Suricate class WidgetResponse def initialize @status = 'ok' end def to_h { status: @status } end def warning! @status = 'warning' end def alert! @status = 'alert'; end def ok! @status = 'ok' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
suricate-0.0.4 | lib/suricate/widgets/responses/widget_response.rb |
suricate-0.0.3 | lib/suricate/widgets/responses/widget_response.rb |