Module: Creem

Defined in:
lib/creem.rb,
lib/creem/client.rb,
lib/creem/errors.rb,
lib/creem/version.rb,
lib/creem/webhook.rb,
lib/creem/configuration.rb,
lib/creem/resources/base.rb,
lib/creem/resources/licenses.rb,
lib/creem/resources/products.rb,
lib/creem/resources/checkouts.rb,
lib/creem/resources/customers.rb,
lib/creem/resources/discounts.rb,
lib/creem/resources/transactions.rb,
lib/creem/resources/subscriptions.rb

Defined Under Namespace

Modules: Resources Classes: ApiError, AuthenticationError, BadRequestError, Client, Configuration, ConfigurationError, Error, NotFoundError, RateLimitError, ServerError, Webhook, WebhookSignatureError

Constant Summary collapse

PRODUCTION_BASE_URL =
"https://api.creem.io/v1"
TEST_BASE_URL =
"https://test-api.creem.io/v1"
VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.configurationObject



25
26
27
# File 'lib/creem.rb', line 25

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/creem.rb', line 21

def configure
  yield(configuration)
end

.reset_configuration!Object



29
30
31
# File 'lib/creem.rb', line 29

def reset_configuration!
  @configuration = Configuration.new
end