class Comable::PaymentProvider::Base

Public Class Methods

authorize!() click to toggle source
# File lib/comable/payment_provider/base.rb, line 17
def authorize!
  true
end
cancel!() click to toggle source
# File lib/comable/payment_provider/base.rb, line 25
def cancel!
  true
end
complete!() click to toggle source
# File lib/comable/payment_provider/base.rb, line 21
def complete!
  true
end
display_name() click to toggle source
# File lib/comable/payment_provider/base.rb, line 9
def display_name
  please_implement_method
end
kind() click to toggle source
# File lib/comable/payment_provider/base.rb, line 13
def kind
  please_implement_method
end
name_symbol() click to toggle source
# File lib/comable/payment_provider/base.rb, line 5
def name_symbol
  name.demodulize.underscore.to_sym
end
resume!() click to toggle source
# File lib/comable/payment_provider/base.rb, line 29
def resume!
  true
end

Private Class Methods

please_implement_method() click to toggle source
# File lib/comable/payment_provider/base.rb, line 35
def please_implement_method
  calling_method_name = caller_locations(1, 1).first.label
  fail "You should implement '#{calling_method_name}' method in #{name}."
end