Module: StripeLocal

Defined in:
lib/stripe_local.rb,
lib/stripe_local/engine.rb,
lib/stripe_local/version.rb,
lib/stripe_local/webhook.rb,
app/models/stripe_local/card.rb,
app/models/stripe_local/plan.rb,
app/models/stripe_local/charge.rb,
app/models/stripe_local/coupon.rb,
lib/stripe_local/webhook/types.rb,
app/models/stripe_local/balance.rb,
app/models/stripe_local/invoice.rb,
app/models/stripe_local/customer.rb,
app/models/stripe_local/discount.rb,
app/models/stripe_local/transfer.rb,
app/models/stripe_local/line_item.rb,
app/mixins/stripe_local/sync_plans.rb,
app/models/stripe_local/transaction.rb,
app/services/stripe_local/job_queue.rb,
lib/stripe_local/webhook/subscriber.rb,
app/callbacks/stripe_local/plan_sync.rb,
app/models/stripe_local/subscription.rb,
lib/stripe_local/association_methods.rb,
lib/stripe_local/instance_delegation.rb,
app/helpers/stripe_local/cards_helper.rb,
app/helpers/stripe_local/plans_helper.rb,
app/mixins/stripe_local/object_adapter.rb,
app/helpers/stripe_local/charges_helper.rb,
app/helpers/stripe_local/coupons_helper.rb,
app/helpers/stripe_local/invoices_helper.rb,
app/helpers/stripe_local/customers_helper.rb,
app/helpers/stripe_local/discounts_helper.rb,
app/helpers/stripe_local/line_items_helper.rb,
app/helpers/stripe_local/application_helper.rb,
app/controllers/stripe_local/cards_controller.rb,
app/controllers/stripe_local/plans_controller.rb,
app/helpers/stripe_local/subscriptions_helper.rb,
app/controllers/stripe_local/charges_controller.rb,
app/controllers/stripe_local/coupons_controller.rb,
app/controllers/stripe_local/invoices_controller.rb,
app/controllers/stripe_local/webhooks_controller.rb,
app/controllers/stripe_local/customers_controller.rb,
app/controllers/stripe_local/discounts_controller.rb,
app/controllers/stripe_local/line_items_controller.rb,
app/controllers/stripe_local/application_controller.rb,
app/controllers/stripe_local/subscriptions_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, AssociationMethods, CardsHelper, ChargesHelper, CouponsHelper, CustomersHelper, DiscountsHelper, InstanceDelegation, InvoicesHelper, LineItemsHelper, ObjectAdapter, PlansHelper, SubscriptionsHelper, SyncPlans, Webhook Classes: ApplicationController, Balance, Card, CardsController, Charge, ChargesController, Coupon, CouponsController, Customer, CustomersController, Discount, DiscountsController, Engine, Invoice, InvoicesController, JobQueue, LineItem, LineItemsController, Plan, PlanSync, PlansController, Subscription, SubscriptionsController, Transaction, Transfer, WebhooksController

Constant Summary collapse

VERSION =
"0.2.5"

Instance Method Summary collapse

Instance Method Details

#stripe_customerObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/stripe_local.rb', line 10

def stripe_customer
  include InstanceDelegation
  include AssociationMethods

  has_one :customer,  inverse_of:  :model,
                      foreign_key: :model_id,
                      class_name:  'StripeLocal::Customer'

  StripeLocal::model_class = self
end