Class: Command::FieldError
- Inherits:
-
Spicerack::InputObject
- Object
- Spicerack::InputObject
- Command::FieldError
- Defined in:
- lib/command/field_error.rb
Class Method Summary collapse
Class Method Details
.collection_from_json(field_error_hashes) ⇒ Object
10 11 12 |
# File 'lib/command/field_error.rb', line 10 def collection_from_json(field_error_hashes) field_error_hashes.map { |field_error_hash| new(**field_error_hash.symbolize_keys) } end |