Class: Stigg::Resources::V1
- Inherits:
-
Object
- Object
- Stigg::Resources::V1
- 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/features.rb,
lib/stigg/resources/v1/products.rb,
lib/stigg/resources/v1/customers.rb,
lib/stigg/resources/v1/subscriptions.rb,
lib/stigg/resources/v1/events/credits.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/events/credits/grants.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/subscriptions/future_update.rb,
lib/stigg/resources/v1/customers/promotional_entitlements.rb
Defined Under Namespace
Classes: Addons, Coupons, Customers, Events, Features, Plans, Products, Subscriptions, Usage
Instance Attribute Summary collapse
-
#addons ⇒ Stigg::Resources::V1::Addons
readonly
Operations related to addons.
-
#coupons ⇒ Stigg::Resources::V1::Coupons
readonly
Operations related to coupons.
- #customers ⇒ Stigg::Resources::V1::Customers readonly
-
#events ⇒ Stigg::Resources::V1::Events
readonly
Operations related to usage & metering.
-
#features ⇒ Stigg::Resources::V1::Features
readonly
Operations related to features.
-
#plans ⇒ Stigg::Resources::V1::Plans
readonly
Operations related to plans.
-
#products ⇒ Stigg::Resources::V1::Products
readonly
Operations related to products.
- #subscriptions ⇒ Stigg::Resources::V1::Subscriptions readonly
-
#usage ⇒ Stigg::Resources::V1::Usage
readonly
Operations related to usage & metering.
Instance Method Summary collapse
-
#initialize(client:) ⇒ V1
constructor
private
A new instance of V1.
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.
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/stigg/resources/v1.rb', line 43 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) @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
#addons ⇒ Stigg::Resources::V1::Addons (readonly)
Operations related to addons
26 27 28 |
# File 'lib/stigg/resources/v1.rb', line 26 def addons @addons end |
#coupons ⇒ Stigg::Resources::V1::Coupons (readonly)
Operations related to coupons
14 15 16 |
# File 'lib/stigg/resources/v1.rb', line 14 def coupons @coupons end |
#customers ⇒ Stigg::Resources::V1::Customers (readonly)
7 8 9 |
# File 'lib/stigg/resources/v1.rb', line 7 def customers @customers end |
#events ⇒ Stigg::Resources::V1::Events (readonly)
Operations related to usage & metering
18 19 20 |
# File 'lib/stigg/resources/v1.rb', line 18 def events @events end |
#features ⇒ Stigg::Resources::V1::Features (readonly)
Operations related to features
22 23 24 |
# File 'lib/stigg/resources/v1.rb', line 22 def features @features end |
#plans ⇒ Stigg::Resources::V1::Plans (readonly)
Operations related to plans
30 31 32 |
# File 'lib/stigg/resources/v1.rb', line 30 def plans @plans end |
#products ⇒ Stigg::Resources::V1::Products (readonly)
Operations related to products
38 39 40 |
# File 'lib/stigg/resources/v1.rb', line 38 def products @products end |
#subscriptions ⇒ Stigg::Resources::V1::Subscriptions (readonly)
10 11 12 |
# File 'lib/stigg/resources/v1.rb', line 10 def subscriptions @subscriptions end |
#usage ⇒ Stigg::Resources::V1::Usage (readonly)
Operations related to usage & metering
34 35 36 |
# File 'lib/stigg/resources/v1.rb', line 34 def usage @usage end |