Class: Gared::Publication
- Inherits:
-
Object
- Object
- Gared::Publication
- Defined in:
- lib/gared/publication.rb
Instance Attribute Summary collapse
-
#additional_urls ⇒ Object
Returns the value of attribute additional_urls.
-
#author_line ⇒ Object
Returns the value of attribute author_line.
-
#context ⇒ Object
Returns the value of attribute context.
-
#holdings ⇒ Object
Returns the value of attribute holdings.
-
#language ⇒ Object
Returns the value of attribute language.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#pub_year ⇒ Object
Returns the value of attribute pub_year.
-
#publisher_line ⇒ Object
Returns the value of attribute publisher_line.
-
#scanned ⇒ Object
Returns the value of attribute scanned.
-
#source_id ⇒ Object
Returns the value of attribute source_id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #add_holding(holding) ⇒ Object
-
#initialize(ctx) ⇒ Publication
constructor
A new instance of Publication.
Constructor Details
#initialize(ctx) ⇒ Publication
Returns a new instance of Publication.
6 7 8 9 |
# File 'lib/gared/publication.rb', line 6 def initialize(ctx) @holdings = [] self.context = ctx end |
Instance Attribute Details
#additional_urls ⇒ Object
Returns the value of attribute additional_urls.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def additional_urls @additional_urls end |
#author_line ⇒ Object
Returns the value of attribute author_line.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def @author_line end |
#context ⇒ Object
Returns the value of attribute context.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def context @context end |
#holdings ⇒ Object
Returns the value of attribute holdings.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def holdings @holdings end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def language @language end |
#notes ⇒ Object
Returns the value of attribute notes.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def notes @notes end |
#pub_year ⇒ Object
Returns the value of attribute pub_year.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def pub_year @pub_year end |
#publisher_line ⇒ Object
Returns the value of attribute publisher_line.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def publisher_line @publisher_line end |
#scanned ⇒ Object
Returns the value of attribute scanned.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def scanned @scanned end |
#source_id ⇒ Object
Returns the value of attribute source_id.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def source_id @source_id end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/gared/publication.rb', line 4 def title @title end |
Instance Method Details
#add_holding(holding) ⇒ Object
11 12 13 |
# File 'lib/gared/publication.rb', line 11 def add_holding(holding) @holdings << holding end |