Class: PaystackGateway::Customers::FetchCustomerResponse
- Inherits:
-
Response
- Object
- Hashie::Dash
- Response
- PaystackGateway::Customers::FetchCustomerResponse
- Includes:
- CustomerResponse
- Defined in:
- lib/paystack_gateway/customers.rb
Overview
Response from GET /customer/:email_or_id
Instance Method Summary collapse
- #active_subscription_codes ⇒ Object
- #active_subscriptions ⇒ Object
- #reusable_authorizations ⇒ Object
Methods inherited from Response
Instance Method Details
#active_subscription_codes ⇒ Object
34 |
# File 'lib/paystack_gateway/customers.rb', line 34 def active_subscription_codes = active_subscriptions.map(&:subscription_code) |
#active_subscriptions ⇒ Object
33 |
# File 'lib/paystack_gateway/customers.rb', line 33 def active_subscriptions = subscriptions.select { _1.status == 'active' } |
#reusable_authorizations ⇒ Object
35 |
# File 'lib/paystack_gateway/customers.rb', line 35 def = .select(&:reusable) |