Class: Stripe::EntitlementsService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::EntitlementsService
- Defined in:
- lib/stripe/services/entitlements_service.rb
Instance Attribute Summary collapse
-
#active_entitlements ⇒ Object
readonly
Returns the value of attribute active_entitlements.
-
#features ⇒ Object
readonly
Returns the value of attribute features.
Instance Method Summary collapse
-
#initialize(requestor) ⇒ EntitlementsService
constructor
A new instance of EntitlementsService.
Methods inherited from StripeService
Constructor Details
#initialize(requestor) ⇒ EntitlementsService
Returns a new instance of EntitlementsService.
8 9 10 11 12 |
# File 'lib/stripe/services/entitlements_service.rb', line 8 def initialize(requestor) super(requestor) @active_entitlements = Stripe::Entitlements::ActiveEntitlementService.new(@requestor) @features = Stripe::Entitlements::FeatureService.new(@requestor) end |
Instance Attribute Details
#active_entitlements ⇒ Object (readonly)
Returns the value of attribute active_entitlements.
6 7 8 |
# File 'lib/stripe/services/entitlements_service.rb', line 6 def active_entitlements @active_entitlements end |
#features ⇒ Object (readonly)
Returns the value of attribute features.
6 7 8 |
# File 'lib/stripe/services/entitlements_service.rb', line 6 def features @features end |