Exception: Pay::Paddle::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/pay/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#result

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Pay::Error

Instance Method Details

#messageObject



54
55
56
# File 'lib/pay/errors.rb', line 54

def message
  I18n.t("errors.paddle.#{result.code}", default: result.message)
end