Class: Record
- Inherits:
-
Object
- Object
- Record
- Defined in:
- lib/record.rb
Instance Method Summary collapse
- #authors ⇒ Object
- #content_type ⇒ Object
- #full_record_link ⇒ Object
- #id ⇒ Object
-
#initialize(record) ⇒ Record
constructor
A new instance of Record.
- #locations ⇒ Object
- #publication_date ⇒ Object
- #source ⇒ Object
- #source_link ⇒ Object
- #subjects ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(record) ⇒ Record
2 3 4 |
# File 'lib/record.rb', line 2 def initialize(record) @record = record end |
Instance Method Details
#authors ⇒ Object
34 35 36 |
# File 'lib/record.rb', line 34 def @record['authors'] end |
#content_type ⇒ Object
42 43 44 |
# File 'lib/record.rb', line 42 def content_type @record['content_type'] end |
#full_record_link ⇒ Object
22 23 24 |
# File 'lib/record.rb', line 22 def full_record_link @record['full_record_link'] end |
#id ⇒ Object
6 7 8 |
# File 'lib/record.rb', line 6 def id @record['id'] end |
#locations ⇒ Object
30 31 32 |
# File 'lib/record.rb', line 30 def locations @record['summary_holdings'] end |
#publication_date ⇒ Object
38 39 40 |
# File 'lib/record.rb', line 38 def publication_date @record['publication_date'] end |
#source ⇒ Object
10 11 12 |
# File 'lib/record.rb', line 10 def source @record['source'] end |
#source_link ⇒ Object
18 19 20 |
# File 'lib/record.rb', line 18 def source_link @record['source_link'] end |
#subjects ⇒ Object
26 27 28 |
# File 'lib/record.rb', line 26 def subjects @record['subjects'] end |
#title ⇒ Object
14 15 16 |
# File 'lib/record.rb', line 14 def title @record['title'] end |