Method: Gruf::Errors::Field#to_h
- Defined in:
- lib/gruf/errors/field.rb
#to_h ⇒ Hash
Return the field error represented as a hash
45 46 47 48 49 50 51 |
# File 'lib/gruf/errors/field.rb', line 45 def to_h { field_name: field_name, error_code: error_code, message: } end |