Class: Stigg::Resources::V1

Inherits:
Object
  • Object
show all
Defined in:
lib/stigg/resources/v1.rb,
lib/stigg/resources/v1/plans.rb,
lib/stigg/resources/v1/usage.rb,
lib/stigg/resources/v1/addons.rb,
lib/stigg/resources/v1/events.rb,
lib/stigg/resources/v1/coupons.rb,
lib/stigg/resources/v1/credits.rb,
lib/stigg/resources/v1/features.rb,
lib/stigg/resources/v1/products.rb,
lib/stigg/resources/v1/customers.rb,
lib/stigg/resources/v1/subscriptions.rb,
lib/stigg/resources/v1/credits/grants.rb,
lib/stigg/resources/v1/plans/entitlements.rb,
lib/stigg/resources/v1/addons/entitlements.rb,
lib/stigg/resources/v1/subscriptions/usage.rb,
lib/stigg/resources/v1/subscriptions/invoice.rb,
lib/stigg/resources/v1/customers/integrations.rb,
lib/stigg/resources/v1/customers/payment_method.rb,
lib/stigg/resources/v1/credits/custom_currencies.rb,
lib/stigg/resources/v1/subscriptions/future_update.rb,
lib/stigg/resources/v1/customers/promotional_entitlements.rb

Defined Under Namespace

Classes: Addons, Coupons, Credits, Customers, Events, Features, Plans, Products, Subscriptions, Usage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ V1

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of V1.

Parameters:



46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/stigg/resources/v1.rb', line 46

def initialize(client:)
  @client = client
  @customers = Stigg::Resources::V1::Customers.new(client: client)
  @subscriptions = Stigg::Resources::V1::Subscriptions.new(client: client)
  @coupons = Stigg::Resources::V1::Coupons.new(client: client)
  @events = Stigg::Resources::V1::Events.new(client: client)
  @credits = Stigg::Resources::V1::Credits.new(client: client)
  @features = Stigg::Resources::V1::Features.new(client: client)
  @addons = Stigg::Resources::V1::Addons.new(client: client)
  @plans = Stigg::Resources::V1::Plans.new(client: client)
  @usage = Stigg::Resources::V1::Usage.new(client: client)
  @products = Stigg::Resources::V1::Products.new(client: client)
end

Instance Attribute Details

#addonsStigg::Resources::V1::Addons (readonly)

Operations related to addons



29
30
31
# File 'lib/stigg/resources/v1.rb', line 29

def addons
  @addons
end

#couponsStigg::Resources::V1::Coupons (readonly)

Operations related to coupons



14
15
16
# File 'lib/stigg/resources/v1.rb', line 14

def coupons
  @coupons
end

#creditsStigg::Resources::V1::Credits (readonly)



21
22
23
# File 'lib/stigg/resources/v1.rb', line 21

def credits
  @credits
end

#customersStigg::Resources::V1::Customers (readonly)



7
8
9
# File 'lib/stigg/resources/v1.rb', line 7

def customers
  @customers
end

#eventsStigg::Resources::V1::Events (readonly)

Operations related to usage & metering



18
19
20
# File 'lib/stigg/resources/v1.rb', line 18

def events
  @events
end

#featuresStigg::Resources::V1::Features (readonly)

Operations related to features



25
26
27
# File 'lib/stigg/resources/v1.rb', line 25

def features
  @features
end

#plansStigg::Resources::V1::Plans (readonly)

Operations related to plans



33
34
35
# File 'lib/stigg/resources/v1.rb', line 33

def plans
  @plans
end

#productsStigg::Resources::V1::Products (readonly)

Operations related to products



41
42
43
# File 'lib/stigg/resources/v1.rb', line 41

def products
  @products
end

#subscriptionsStigg::Resources::V1::Subscriptions (readonly)



10
11
12
# File 'lib/stigg/resources/v1.rb', line 10

def subscriptions
  @subscriptions
end

#usageStigg::Resources::V1::Usage (readonly)

Operations related to usage & metering



37
38
39
# File 'lib/stigg/resources/v1.rb', line 37

def usage
  @usage
end