lib/puree/extractor/project.rb in puree-1.9.1 vs lib/puree/extractor/project.rb in puree-2.0.0

- old
+ new

@@ -4,37 +4,14 @@ # Project extractor. # class Project < Puree::Extractor::Resource - # @option (see Puree::Extractor::Resource#initialize) - def initialize(config) - super - @latest_api = false # current API does not return person roles - setup :project - end - - private - - def combine_metadata - super - @model.acronym = @extractor.acronym - # @model.associated = @extractor.associated # not present in stable API - @model.description = @extractor.description - @model.external_organisations = @extractor.external_organisations - @model.funded = @extractor.funded? - @model.organisations = @extractor.organisations - @model.owner = @extractor.owner - @model.persons_internal = @extractor.persons_internal - @model.persons_external = @extractor.persons_external - @model.persons_other = @extractor.persons_other - @model.status = @extractor.status - @model.temporal_actual = @extractor.temporal_actual - @model.temporal_expected = @extractor.temporal_expected - @model.title = @extractor.title - @model.type = @extractor.type - @model.url = @extractor.url - @model + # @param id [String] + def find(id) + find_and_extract id: id, + api_resource_type: :project, + xml_extractor_resource_type: :project end end end