Module: ChartMogul
- Extended by:
- ConfigAttributes
- Defined in:
- lib/chartmogul.rb,
lib/chartmogul/note.rb,
lib/chartmogul/ping.rb,
lib/chartmogul/plan.rb,
lib/chartmogul/object.rb,
lib/chartmogul/account.rb,
lib/chartmogul/contact.rb,
lib/chartmogul/invoice.rb,
lib/chartmogul/summary.rb,
lib/chartmogul/version.rb,
lib/chartmogul/customer.rb,
lib/chartmogul/plan_group.rb,
lib/chartmogul/data_source.rb,
lib/chartmogul/metrics/arr.rb,
lib/chartmogul/metrics/asp.rb,
lib/chartmogul/metrics/ltv.rb,
lib/chartmogul/metrics/mrr.rb,
lib/chartmogul/opportunity.rb,
lib/chartmogul/summary_all.rb,
lib/chartmogul/api_resource.rb,
lib/chartmogul/metrics/arpa.rb,
lib/chartmogul/metrics/base.rb,
lib/chartmogul/subscription.rb,
lib/chartmogul/configuration.rb,
lib/chartmogul/resource_path.rb,
lib/chartmogul/api/actions/all.rb,
lib/chartmogul/concerns/entries.rb,
lib/chartmogul/concerns/summary.rb,
lib/chartmogul/metrics/activity.rb,
lib/chartmogul/concerns/pageable.rb,
lib/chartmogul/config_attributes.rb,
lib/chartmogul/customer_invoices.rb,
lib/chartmogul/plan_groups/plans.rb,
lib/chartmogul/utils/json_parser.rb,
lib/chartmogul/api/actions/create.rb,
lib/chartmogul/api/actions/custom.rb,
lib/chartmogul/api/actions/update.rb,
lib/chartmogul/concerns/pageable2.rb,
lib/chartmogul/subscription_event.rb,
lib/chartmogul/api/actions/destroy.rb,
lib/chartmogul/enrichment/customer.rb,
lib/chartmogul/errors/server_error.rb,
lib/chartmogul/line_items/one_time.rb,
lib/chartmogul/transactions/refund.rb,
lib/chartmogul/api/actions/retrieve.rb,
lib/chartmogul/concerns/summary_all.rb,
lib/chartmogul/transactions/payment.rb,
lib/chartmogul/errors/forbidden_error.rb,
lib/chartmogul/errors/not_found_error.rb,
lib/chartmogul/metrics/customer_count.rb,
lib/chartmogul/metrics/mrr_churn_rate.rb,
lib/chartmogul/utils/hash_snake_caser.rb,
lib/chartmogul/errors/chartmogul_error.rb,
lib/chartmogul/line_items/subscription.rb,
lib/chartmogul/metrics/all_key_metrics.rb,
lib/chartmogul/errors/unauthorized_error.rb,
lib/chartmogul/metrics/activities_export.rb,
lib/chartmogul/errors/configuration_error.rb,
lib/chartmogul/metrics/customers/activity.rb,
lib/chartmogul/errors/schema_invalid_error.rb,
lib/chartmogul/metrics/customer_churn_rate.rb,
lib/chartmogul/concerns/pageable_with_anchor.rb,
lib/chartmogul/concerns/pageable_with_cursor.rb,
lib/chartmogul/errors/resource_invalid_error.rb,
lib/chartmogul/metrics/customers/subscription.rb,
lib/chartmogul/api/actions/destroy_with_params.rb,
lib/chartmogul/errors/deprecated_parameter_error.rb
Defined Under Namespace
Modules: API, Concerns, ConfigAttributes, Enrichment, LineItems, Metrics, PlanGroups, Transactions, Utils Classes: APIResource, Account, ChartMogulError, Configuration, ConfigurationError, Contact, Contacts, Customer, CustomerInvoices, Customers, DataSource, DataSources, DeprecatedParameterError, ForbiddenError, Invoice, Invoices, NotFoundError, Note, Notes, Object, Opportnities, Opportunity, Ping, Plan, PlanGroup, Plans, ResourceInvalidError, ResourcePath, SchemaInvalidError, ServerError, Subscription, SubscriptionEvent, SubscriptionEvents, Subscriptions, Summary, SummaryAll, UnauthorizedError
Constant Summary collapse
- API_BASE =
'https://api.chartmogul.com'
- MAX_RETRIES =
20
- CONFIG_THREAD_KEY =
'chartmogul_ruby.config'
- VERSION =
'4.4.0'
Class Method Summary collapse
-
.config ⇒ Object
This configuration is thread-safe and fits multi-account async jobs processing use case.
- .global_config ⇒ Object
Methods included from ConfigAttributes
Class Method Details
.config ⇒ Object
This configuration is thread-safe and fits multi-account async jobs processing use case.
101 102 103 |
# File 'lib/chartmogul.rb', line 101 def config Thread.current[CONFIG_THREAD_KEY] ||= ChartMogul::Configuration.new end |
.global_config ⇒ Object
95 96 97 |
# File 'lib/chartmogul.rb', line 95 def global_config @global_config ||= ChartMogul::Configuration.new end |