class Libis::Ingester::IntellectualEntity
Public Instance Methods
originals()
click to toggle source
# File lib/libis/ingester/intellectual_entity.rb, line 27 def originals self.items.ne(_type: Libis::Ingester::Representation.to_s).no_timeout end
representation(name_or_id)
click to toggle source
# File lib/libis/ingester/intellectual_entity.rb, line 23 def representation(name_or_id) self.representations.where(id: name_or_id).first || self.representations.where(name: name_or_id).first end
representations()
click to toggle source
# File lib/libis/ingester/intellectual_entity.rb, line 19 def representations self.items.where(_type: Libis::Ingester::Representation.to_s).no_timeout end
to_hash()
click to toggle source
noinspection RubyResolve
Calls superclass method
Libis::Ingester::Item#to_hash
# File lib/libis/ingester/intellectual_entity.rb, line 32 def to_hash result = super result[:retention_period_id] = self.retention_period.rp_id if self.retention_period result.cleanup end