Method: ApiClient::Errors#add_errors
- Defined in:
- lib/api-client/errors.rb
#add_errors(errors = {}) ⇒ ApiClient::Errors
Add several errors from a hash to the object.
9 10 11 12 13 |
# File 'lib/api-client/errors.rb', line 9 def add_errors(errors = {}) errors.each_pair do |key, value| add(key, value) end end |