Class: Yoda::Model::PrimarySourceInferencer
- Inherits:
-
Object
- Object
- Yoda::Model::PrimarySourceInferencer
- Defined in:
- lib/yoda/model/primary_source_inferencer.rb
Instance Method Summary collapse
- #infer_for_object(object) ⇒ Object
-
#initialize ⇒ PrimarySourceInferencer
constructor
A new instance of PrimarySourceInferencer.
Constructor Details
#initialize ⇒ PrimarySourceInferencer
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
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 |