Class: DiscoveryIndexer::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/discovery-indexer/collection.rb

Overview

Collection information such as name (title/label) and catkey

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(druid) ⇒ Collection

Returns a new instance of Collection.



8
9
10
# File 'lib/discovery-indexer/collection.rb', line 8

def initialize(druid)
  @druid = druid
end

Instance Attribute Details

#druidObject (readonly)

Returns the value of attribute druid.



6
7
8
# File 'lib/discovery-indexer/collection.rb', line 6

def druid
  @druid
end

Instance Method Details

#searchworks_idObject



12
13
14
# File 'lib/discovery-indexer/collection.rb', line 12

def searchworks_id
  collection_info[:ckey] || druid
end

#titleObject



16
17
18
# File 'lib/discovery-indexer/collection.rb', line 16

def title
  collection_info[:title]
end