Class: Stripe::EntitlementsService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/entitlements_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from StripeService

#request, #request_stream

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_entitlementsObject (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

#featuresObject (readonly)

Returns the value of attribute features.



6
7
8
# File 'lib/stripe/services/entitlements_service.rb', line 6

def features
  @features
end