Class: StatusCat::Checkers::Stripe
- Defined in:
- lib/status_cat/checkers/stripe.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Stripe
constructor
A new instance of Stripe.
Methods inherited from Base
Constructor Details
#initialize ⇒ Stripe
Returns a new instance of Stripe.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/status_cat/checkers/stripe.rb', line 5 def initialize if !defined?( ::Stripe ) @status = 'stripe gem not installed' else @status = fail_on_exception do account = ::Stripe::Account.retrieve @value = account.email account.charge_enabled ? nil : 'Charge is not enabled' end end end |