Class: Classifoclc::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/classifoclc/author.rb

Overview

Author of a Classifoclc::Work

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lcString (readonly)

The author’s Library of Congress id number

Returns:

  • (String)


10
11
12
# File 'lib/classifoclc/author.rb', line 10

def lc
  @lc
end

#nameString (readonly)

The author’s name

Returns:

  • (String)


6
7
8
# File 'lib/classifoclc/author.rb', line 6

def name
  @name
end

#viafString (readonly)

The author’s VIAF number

Returns:

  • (String)


14
15
16
# File 'lib/classifoclc/author.rb', line 14

def viaf
  @viaf
end