class Voom::Commands::Messages

Attributes

errors[R]
snackbar[R]
warnings[R]

Public Class Methods

new(errors: {}, warnings: {}, snackbar: []) click to toggle source
# File lib/voom/commands/messages.rb, line 6
def initialize(errors: {}, warnings: {}, snackbar: [])
  @errors = errors
  @warnings = warnings
  @snackbar = snackbar
end

Public Instance Methods

to_h() click to toggle source
# File lib/voom/commands/messages.rb, line 12
def to_h
  {
      errors: errors,
      warnings: warnings,
      snackbar: snackbar
  }
end