Sha256: 62d634f7f3c3df2517da053fc4bd2ebbc9a5d7f14270c35d8640eb4d309dade2

Contents?: true

Size: 968 Bytes

Versions: 15

Compression:

Stored size: 968 Bytes

Contents

require 'emitter'

module BrighterPlanet
  module Purchase
    attr_accessor :merchant_category_code

    extend BrighterPlanet::Emitter

    class << self
      def sector_direct_requirements_adapter
        return @sector_direct_requirements_adapter if @sector_direct_requirements_adapter

        require 'test_support/test_sector_direct_requirements_adapter'
        @sector_direct_requirements_adapter = TestSectorDirectRequirementsAdapter
      end
      def sector_direct_requirements_adapter=(val)
        @sector_direct_requirements_adapter = val
      end

      def impact_vectors_adapter
        return @impact_vectors_adapter if @impact_vectors_adapter

        require 'test_support/test_impact_vectors_adapter'
        @impact_vectors_adapter = TestImpactVectorsAdapter
      end
      def impact_vectors_adapter=(val)
        @impact_vectors_adapter = val
      end

      def key_map
        impact_vectors_adapter.key_map
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
purchase-1.0.14 lib/purchase.rb
purchase-1.0.13 lib/purchase.rb
purchase-1.0.12 lib/purchase.rb
purchase-1.0.11 lib/purchase.rb
purchase-1.0.10 lib/purchase.rb
purchase-1.0.9 lib/purchase.rb
purchase-1.0.8 lib/purchase.rb
purchase-1.0.7 lib/purchase.rb
purchase-1.0.6 lib/purchase.rb
purchase-1.0.5 lib/purchase.rb
purchase-1.0.4 lib/purchase.rb
purchase-1.0.3 lib/purchase.rb
purchase-1.0.2 lib/purchase.rb
purchase-1.0.1 lib/purchase.rb
purchase-1.0.0 lib/purchase.rb