module Pay::Merchant
Attributes
includers[R]
Public Class Methods
included(base = nil, &block)
click to toggle source
Calls superclass method
# File lib/pay/merchant.rb, line 10 def self.included(base = nil, &block) @includers ||= [] @includers << base if base super end
Public Instance Methods
merchant()
click to toggle source
# File lib/pay/merchant.rb, line 21 def merchant @merchant ||= merchant_processor_for(merchant_processor).new(self) end
merchant_processor_for(name)
click to toggle source
# File lib/pay/merchant.rb, line 25 def merchant_processor_for(name) "Pay::#{name.to_s.classify}::Merchant".constantize end
onboarding_complete?()
click to toggle source
# File lib/pay/merchant.rb, line 33 def onboarding_complete? !!onboarding_complete end
stripe_connect_account_id?()
click to toggle source
# File lib/pay/merchant.rb, line 29 def stripe_connect_account_id? !!stripe_connect_account_id end