Class: BibCard::Getty::Source

Inherits:
Spira::Base
  • Object
show all
Defined in:
lib/bib_card/getty/source.rb

Instance Method Summary collapse

Instance Method Details

#parentObject



8
9
10
11
# File 'lib/bib_card/getty/source.rb', line 8

def parent
  stmt = Spira.repository.query({subject: self.subject, predicate: DC_IS_PART_OF}).first
  stmt.nil? ? nil : stmt.object.as(Source)
end