Module: SpreeAdyen::PaymentMethodDecorator
- Defined in:
- app/models/spree_adyen/payment_method_decorator.rb
Constant Summary collapse
- ADYEN_TYPE =
'SpreeAdyen::Gateway'.freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
5 6 7 |
# File 'app/models/spree_adyen/payment_method_decorator.rb', line 5 def self.prepended(base) base.scope :adyen, -> { where(type: ADYEN_TYPE) } end |
Instance Method Details
#adyen? ⇒ Boolean
9 10 11 |
# File 'app/models/spree_adyen/payment_method_decorator.rb', line 9 def adyen? type == ADYEN_TYPE end |