Module: BrighterPlanet::Purchase

Extended by:
Emitter
Included in:
PurchaseRecord
Defined in:
lib/purchase.rb,
lib/purchase/data.rb,
lib/purchase/fallback.rb,
lib/purchase/carbon_model.rb,
lib/purchase/relationships.rb,
lib/purchase/summarization.rb,
lib/purchase/characterization.rb,
lib/test_support/test_impact_vectors_adapter.rb,
lib/test_support/test_sector_direct_requirements_adapter.rb

Defined Under Namespace

Modules: CarbonModel, Characterization, Data, Fallback, Relationships, Summarization, TestImpactVectorsAdapter Classes: TestSectorDirectRequirementsAdapter

Class Method Summary collapse

Class Method Details

.impact_vectors_adapterObject



18
19
20
21
22
23
# File 'lib/purchase.rb', line 18

def impact_vectors_adapter
  return @impact_vectors_adapter if @impact_vectors_adapter

  require 'test_support/test_impact_vectors_adapter'
  @impact_vectors_adapter = TestImpactVectorsAdapter
end

.impact_vectors_adapter=(val) ⇒ Object



24
25
26
# File 'lib/purchase.rb', line 24

def impact_vectors_adapter=(val)
  @impact_vectors_adapter = val
end

.key_mapObject



28
29
30
# File 'lib/purchase.rb', line 28

def key_map
  impact_vectors_adapter.key_map
end

.sector_direct_requirements_adapterObject



8
9
10
11
12
13
# File 'lib/purchase.rb', line 8

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

.sector_direct_requirements_adapter=(val) ⇒ Object



14
15
16
# File 'lib/purchase.rb', line 14

def sector_direct_requirements_adapter=(val)
  @sector_direct_requirements_adapter = val
end