Exception: BooticCli::Themes::APITheme::EntityErrors
- Inherits:
-
StandardError
- Object
- StandardError
- BooticCli::Themes::APITheme::EntityErrors
- Defined in:
- lib/bootic_cli/themes/api_theme.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ EntityErrors
constructor
A new instance of EntityErrors.
Constructor Details
#initialize(errors) ⇒ EntityErrors
Returns a new instance of EntityErrors.
63 64 65 66 |
# File 'lib/bootic_cli/themes/api_theme.rb', line 63 def initialize(errors) @errors = errors super "Entity has errors: #{errors.map(&:field).join(', ')}" end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
62 63 64 |
# File 'lib/bootic_cli/themes/api_theme.rb', line 62 def errors @errors end |