Class: MetronomeSDK::Resources::V1

Inherits:
Object
  • Object
show all
Defined in:
lib/metronome_sdk/resources/v1.rb,
lib/metronome_sdk/resources/v1/plans.rb,
lib/metronome_sdk/resources/v1/usage.rb,
lib/metronome_sdk/resources/v1/alerts.rb,
lib/metronome_sdk/resources/v1/invoices.rb,
lib/metronome_sdk/resources/v1/payments.rb,
lib/metronome_sdk/resources/v1/services.rb,
lib/metronome_sdk/resources/v1/settings.rb,
lib/metronome_sdk/resources/v1/contracts.rb,
lib/metronome_sdk/resources/v1/customers.rb,
lib/metronome_sdk/resources/v1/audit_logs.rb,
lib/metronome_sdk/resources/v1/dashboards.rb,
lib/metronome_sdk/resources/v1/credit_grants.rb,
lib/metronome_sdk/resources/v1/custom_fields.rb,
lib/metronome_sdk/resources/v1/pricing_units.rb,
lib/metronome_sdk/resources/v1/customers/plans.rb,
lib/metronome_sdk/resources/v1/billable_metrics.rb,
lib/metronome_sdk/resources/v1/customers/alerts.rb,
lib/metronome_sdk/resources/v1/customers/commits.rb,
lib/metronome_sdk/resources/v1/customers/credits.rb,
lib/metronome_sdk/resources/v1/contracts/products.rb,
lib/metronome_sdk/resources/v1/customers/invoices.rb,
lib/metronome_sdk/resources/v1/contracts/rate_cards.rb,
lib/metronome_sdk/resources/v1/customers/billing_config.rb,
lib/metronome_sdk/resources/v1/contracts/named_schedules.rb,
lib/metronome_sdk/resources/v1/customers/named_schedules.rb,
lib/metronome_sdk/resources/v1/contracts/rate_cards/rates.rb,
lib/metronome_sdk/resources/v1/settings/billing_providers.rb,
lib/metronome_sdk/resources/v1/contracts/rate_cards/product_orders.rb,
lib/metronome_sdk/resources/v1/contracts/rate_cards/named_schedules.rb

Defined Under Namespace

Classes: Alerts, AuditLogs, BillableMetrics, Contracts, CreditGrants, CustomFields, Customers, Dashboards, Invoices, Payments, Plans, PricingUnits, Services, Settings, 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:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/metronome_sdk/resources/v1.rb', line 54

def initialize(client:)
  @client = client
  @alerts = MetronomeSDK::Resources::V1::Alerts.new(client: client)
  @plans = MetronomeSDK::Resources::V1::Plans.new(client: client)
  @credit_grants = MetronomeSDK::Resources::V1::CreditGrants.new(client: client)
  @pricing_units = MetronomeSDK::Resources::V1::PricingUnits.new(client: client)
  @customers = MetronomeSDK::Resources::V1::Customers.new(client: client)
  @dashboards = MetronomeSDK::Resources::V1::Dashboards.new(client: client)
  @usage = MetronomeSDK::Resources::V1::Usage.new(client: client)
  @audit_logs = MetronomeSDK::Resources::V1::AuditLogs.new(client: client)
  @custom_fields = MetronomeSDK::Resources::V1::CustomFields.new(client: client)
  @billable_metrics = MetronomeSDK::Resources::V1::BillableMetrics.new(client: client)
  @services = MetronomeSDK::Resources::V1::Services.new(client: client)
  @invoices = MetronomeSDK::Resources::V1::Invoices.new(client: client)
  @contracts = MetronomeSDK::Resources::V1::Contracts.new(client: client)
  @payments = MetronomeSDK::Resources::V1::Payments.new(client: client)
  @settings = MetronomeSDK::Resources::V1::Settings.new(client: client)
end

Instance Attribute Details

#alertsMetronomeSDK::Resources::V1::Alerts (readonly)



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

def alerts
  @alerts
end

#audit_logsMetronomeSDK::Resources::V1::AuditLogs (readonly)



28
29
30
# File 'lib/metronome_sdk/resources/v1.rb', line 28

def audit_logs
  @audit_logs
end

#billable_metricsMetronomeSDK::Resources::V1::BillableMetrics (readonly)



34
35
36
# File 'lib/metronome_sdk/resources/v1.rb', line 34

def billable_metrics
  @billable_metrics
end

#contractsMetronomeSDK::Resources::V1::Contracts (readonly)



43
44
45
# File 'lib/metronome_sdk/resources/v1.rb', line 43

def contracts
  @contracts
end

#credit_grantsMetronomeSDK::Resources::V1::CreditGrants (readonly)



13
14
15
# File 'lib/metronome_sdk/resources/v1.rb', line 13

def credit_grants
  @credit_grants
end

#custom_fieldsMetronomeSDK::Resources::V1::CustomFields (readonly)



31
32
33
# File 'lib/metronome_sdk/resources/v1.rb', line 31

def custom_fields
  @custom_fields
end

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



19
20
21
# File 'lib/metronome_sdk/resources/v1.rb', line 19

def customers
  @customers
end

#dashboardsMetronomeSDK::Resources::V1::Dashboards (readonly)



22
23
24
# File 'lib/metronome_sdk/resources/v1.rb', line 22

def dashboards
  @dashboards
end

#invoicesMetronomeSDK::Resources::V1::Invoices (readonly)



40
41
42
# File 'lib/metronome_sdk/resources/v1.rb', line 40

def invoices
  @invoices
end

#paymentsMetronomeSDK::Resources::V1::Payments (readonly)



46
47
48
# File 'lib/metronome_sdk/resources/v1.rb', line 46

def payments
  @payments
end

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



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

def plans
  @plans
end

#pricing_unitsMetronomeSDK::Resources::V1::PricingUnits (readonly)



16
17
18
# File 'lib/metronome_sdk/resources/v1.rb', line 16

def pricing_units
  @pricing_units
end

#servicesMetronomeSDK::Resources::V1::Services (readonly)



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

def services
  @services
end

#settingsMetronomeSDK::Resources::V1::Settings (readonly)



49
50
51
# File 'lib/metronome_sdk/resources/v1.rb', line 49

def settings
  @settings
end

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



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

def usage
  @usage
end