Module: FatZebra

Defined in:
lib/fat_zebra.rb,
lib/fat_zebra/card.rb,
lib/fat_zebra/util.rb,
lib/fat_zebra/batch.rb,
lib/fat_zebra/config.rb,
lib/fat_zebra/errors.rb,
lib/fat_zebra/refund.rb,
lib/fat_zebra/request.rb,
lib/fat_zebra/version.rb,
lib/fat_zebra/customer.rb,
lib/fat_zebra/purchase.rb,
lib/fat_zebra/web_hook.rb,
lib/fat_zebra/api_helper.rb,
lib/fat_zebra/validation.rb,
lib/fat_zebra/information.rb,
lib/fat_zebra/api_resource.rb,
lib/fat_zebra/authenticate.rb,
lib/fat_zebra/bank_account.rb,
lib/fat_zebra/direct_debit.rb,
lib/fat_zebra/payment_plan.rb,
lib/fat_zebra/paypal/order.rb,
lib/fat_zebra/direct_credit.rb,
lib/fat_zebra/object_helper.rb,
lib/fat_zebra/paypal/refund.rb,
lib/fat_zebra/paypal/capture.rb,
lib/fat_zebra/fat_zebra_object.rb,
lib/fat_zebra/api_operation/find.rb,
lib/fat_zebra/api_operation/save.rb,
lib/fat_zebra/api_operation/void.rb,
lib/fat_zebra/api_operation/delete.rb,
lib/fat_zebra/api_operation/search.rb,
lib/fat_zebra/paypal/authorization.rb,
lib/fat_zebra/request/multipart/part.rb,
lib/fat_zebra/request/multipart/param.rb,
lib/fat_zebra/paypal/billing_agreement.rb,
lib/fat_zebra/request/multipart/stream.rb,
lib/fat_zebra/request/multipart/file_io.rb,
lib/fat_zebra/request/multipart/epilogue.rb,
lib/fat_zebra/utilities/apple_pay/domain.rb,
lib/fat_zebra/utilities/mastercard/click_to_pay/registration.rb

Overview

rubocop:disable Style/FrozenStringLiteralComment

Defined Under Namespace

Modules: APIHelper, ObjectHelper, Paypal, Util, Utilities, Validation Classes: APIOperation, APIResource, Authenticate, BankAccount, Batch, Card, Config, ConfigurationError, Customer, DirectCredit, DirectDebit, FatZebraObject, Information, PaymentPlan, Purchase, Refund, Request, RequestError, RequestValidationError, UnknownRequestMethod, WebHook

Constant Summary collapse

VERSION =
'3.2.9'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationsFatZebra::Config (readonly)

Returns configurations.

Returns:



63
64
65
# File 'lib/fat_zebra.rb', line 63

def configurations
  @configurations
end

Class Method Details

.configure {|@configurations = FatZebra::Config.new| ... } ⇒ Object

Configures the FatZebra API

Examples:

Default configuration

FatZebra.configure do |config|
  config.username = 'my-username'
  config.token    = 'my-token'
end

Yields:



73
74
75
76
77
# File 'lib/fat_zebra.rb', line 73

def configure
  yield @configurations = FatZebra::Config.new

  FatZebra.configurations.valid!
end