Sha256: cc35fe498dbfb93baef9a6a52a5fb0198100c9a9b1f35e57f12e72aa9e76ce6f

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

module Voom
  module Commands
    class Messages
      attr_reader :warnings, :errors, :snackbar

      def initialize(errors: {}, warnings: {}, snackbar: [])
        @errors = errors
        @warnings = warnings
        @snackbar = snackbar
      end

      def to_h
        {
            errors: errors,
            warnings: warnings,
            snackbar: snackbar
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
voom-commands-0.1.1 lib/voom/commands/messages.rb
voom-commands-0.1.0 lib/voom/commands/messages.rb