Sha256: ea69650fe5c919ebb69f73afeecbb3e8d92c6840fc59408fb6f17b98df95da0b

Contents?: true

Size: 358 Bytes

Versions: 9

Compression:

Stored size: 358 Bytes

Contents

module Spree
  class WebMoneyDecorator
    attr_reader :source
    delegate :short_amount, :prepaid_cards, :payment_uuid, to: :source,
      allow_nil: true

    def initialize(source)
      @source = if source.present? && source.brand == "web_moneys"
                  source
                else
                  nil
                end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_komoju-0.1.4 app/models/spree/web_money_decorator.rb
spree_komoju-0.1.3 app/models/spree/web_money_decorator.rb
spree_komoju-0.1.2 app/models/spree/web_money_decorator.rb
spree_komoju-0.1.1 app/models/spree/web_money_decorator.rb
spree_komoju-0.1.0 app/models/spree/web_money_decorator.rb
spree_komoju-0.0.9 app/models/spree/web_money_decorator.rb
spree_komoju-0.0.8 app/models/spree/web_money_decorator.rb
spree_komoju-0.0.7 app/models/spree/web_money_decorator.rb
spree_komoju-0.0.6 app/models/spree/web_money_decorator.rb