Class: Classifoclc::Author
- Inherits:
-
Object
- Object
- Classifoclc::Author
- Defined in:
- lib/classifoclc/author.rb
Overview
Author of a Classifoclc::Work
Instance Attribute Summary collapse
-
#lc ⇒ String
readonly
The author’s Library of Congress id number.
-
#name ⇒ String
readonly
The author’s name.
-
#viaf ⇒ String
readonly
The author’s VIAF number.
Instance Method Summary collapse
-
#initialize(name, lc, viaf) ⇒ Author
constructor
A new instance of Author.
Constructor Details
#initialize(name, lc, viaf) ⇒ Author
Returns a new instance of Author.
15 16 17 18 19 |
# File 'lib/classifoclc/author.rb', line 15 def initialize(name, lc, viaf) @name = name @lc = lc @viaf = viaf end |
Instance Attribute Details
#lc ⇒ String (readonly)
The author’s Library of Congress id number
10 11 12 |
# File 'lib/classifoclc/author.rb', line 10 def lc @lc end |
#name ⇒ String (readonly)
The author’s name
6 7 8 |
# File 'lib/classifoclc/author.rb', line 6 def name @name end |
#viaf ⇒ String (readonly)
The author’s VIAF number
14 15 16 |
# File 'lib/classifoclc/author.rb', line 14 def viaf @viaf end |