Class: DiscoveryIndexer::Collection
- Inherits:
-
Object
- Object
- DiscoveryIndexer::Collection
- Defined in:
- lib/discovery-indexer/collection.rb
Overview
Collection information such as name (title/label) and catkey
Instance Attribute Summary collapse
-
#druid ⇒ Object
readonly
Returns the value of attribute druid.
Instance Method Summary collapse
-
#initialize(druid) ⇒ Collection
constructor
A new instance of Collection.
- #searchworks_id ⇒ Object
- #title ⇒ Object
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
#druid ⇒ Object (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_id ⇒ Object
12 13 14 |
# File 'lib/discovery-indexer/collection.rb', line 12 def searchworks_id collection_info[:ckey] || druid end |
#title ⇒ Object
16 17 18 |
# File 'lib/discovery-indexer/collection.rb', line 16 def title collection_info[:title] end |