Class: Classifoclc::Edition

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

Overview

An expression of a work. The physical books libraries held (or their digitizations) are “manifestations” of these editions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Edition

Returns a new instance of Edition.



7
8
9
10
# File 'lib/classifoclc/edition.rb', line 7

def initialize(node)
  @edition = node
  @classifications = load_classifications(node)
end

Instance Attribute Details

#classificationsObject (readonly)

Returns the value of attribute classifications.



5
6
7
# File 'lib/classifoclc/edition.rb', line 5

def classifications
  @classifications
end

Instance Method Details

#authorsString

The author of the edition

Returns:

  • (String)


20
21
22
# File 'lib/classifoclc/edition.rb', line 20

def authors
  @edition['author']
end

#eholdingsInteger

The number of libraries that hold a digital copy of this work

Returns:

  • (Integer)


50
51
52
# File 'lib/classifoclc/edition.rb', line 50

def eholdings
  @edition['eholdings'].to_i
end

#formatString

The format of the edition

Returns:

  • (String)


32
33
34
# File 'lib/classifoclc/edition.rb', line 32

def format
  @edition['format']
end

#holdingsInteger

The number of libraries that hold a copy of this work

Returns:

  • (Integer)


44
45
46
# File 'lib/classifoclc/edition.rb', line 44

def holdings
  @edition['holdings'].to_i
end

#itemtypeString

The type of item the edition

Returns:

  • (String)


38
39
40
# File 'lib/classifoclc/edition.rb', line 38

def itemtype
  @edition['itemtype']
end

#languageString

The language of item the edition

Returns:

  • (String)


56
57
58
# File 'lib/classifoclc/edition.rb', line 56

def language
  @edition['language']
end

#oclcString

The OCLC number of the edition

Returns:

  • (String)


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

def oclc
  @edition['oclc']
end

#titleString

The title of the edition

Returns:

  • (String)


26
27
28
# File 'lib/classifoclc/edition.rb', line 26

def title
  @edition['title']
end