Class: Yoda::Model::PrimarySourceInferencer

Inherits:
Object
  • Object
show all
Defined in:
lib/yoda/model/primary_source_inferencer.rb

Instance Method Summary collapse

Constructor Details

#initializePrimarySourceInferencer

Returns a new instance of PrimarySourceInferencer.



4
5
# File 'lib/yoda/model/primary_source_inferencer.rb', line 4

def initialize
end

Instance Method Details

#infer_for_object(object) ⇒ Object

Parameters:



8
9
10
# File 'lib/yoda/model/primary_source_inferencer.rb', line 8

def infer_for_object(object)
  object.primary_source || infer_primary_source_from_object_sources(object)
end