Class: Pure::Extractor::Formatters::Person
- Defined in:
- lib/pure/extractor/formatters/person.rb
Class Method Summary collapse
Methods inherited from Resource
Class Method Details
.format(unit) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/pure/extractor/formatters/person.rb', line 9 def self.format unit { system: get_system(unit), details: { first_name: unit.name.first, last_name: unit.name.last, email: unit.email_addresses.first, image_url: unit.image_urls.first, orcid: unit.orcid } } end |