Method: GoCardlessPro::Error#to_s
- Defined in:
- lib/gocardless_pro/error.rb
#to_s ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/gocardless_pro/error.rb', line 24 def to_s if errors.any? errors .map { |err| "#{err['field']} #{err['message']}" } .join(', ') else @error['message'] end end |