Exception: BooticCli::Themes::APITheme::EntityErrors

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bootic_cli/themes/api_theme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ EntityErrors



84
85
86
87
# File 'lib/bootic_cli/themes/api_theme.rb', line 84

def initialize(errors)
  @errors = errors
  super "Entity has errors: #{errors.map(&:field)}"
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



83
84
85
# File 'lib/bootic_cli/themes/api_theme.rb', line 83

def errors
  @errors
end