Class: Classifoclc::Edition
- Inherits:
-
Object
- Object
- Classifoclc::Edition
- 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
-
#classifications ⇒ Object
readonly
Returns the value of attribute classifications.
Instance Method Summary collapse
-
#authors ⇒ String
The author of the edition.
-
#eholdings ⇒ Integer
The number of libraries that hold a digital copy of this work.
-
#format ⇒ String
The format of the edition.
-
#holdings ⇒ Integer
The number of libraries that hold a copy of this work.
-
#initialize(node) ⇒ Edition
constructor
A new instance of Edition.
-
#itemtype ⇒ String
The type of item the edition.
-
#language ⇒ String
The language of item the edition.
-
#oclc ⇒ String
The OCLC number of the edition.
-
#title ⇒ String
The title of the edition.
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
#classifications ⇒ Object (readonly)
Returns the value of attribute classifications.
5 6 7 |
# File 'lib/classifoclc/edition.rb', line 5 def classifications @classifications end |
Instance Method Details
#authors ⇒ String
The author of the edition
20 21 22 |
# File 'lib/classifoclc/edition.rb', line 20 def @edition['author'] end |
#eholdings ⇒ Integer
The number of libraries that hold a digital copy of this work
50 51 52 |
# File 'lib/classifoclc/edition.rb', line 50 def eholdings @edition['eholdings'].to_i end |
#format ⇒ String
The format of the edition
32 33 34 |
# File 'lib/classifoclc/edition.rb', line 32 def format @edition['format'] end |
#holdings ⇒ Integer
The number of libraries that hold a copy of this work
44 45 46 |
# File 'lib/classifoclc/edition.rb', line 44 def holdings @edition['holdings'].to_i end |
#itemtype ⇒ String
The type of item the edition
38 39 40 |
# File 'lib/classifoclc/edition.rb', line 38 def itemtype @edition['itemtype'] end |
#language ⇒ String
The language of item the edition
56 57 58 |
# File 'lib/classifoclc/edition.rb', line 56 def language @edition['language'] end |
#oclc ⇒ String
The OCLC number of the edition
14 15 16 |
# File 'lib/classifoclc/edition.rb', line 14 def oclc @edition['oclc'] end |
#title ⇒ String
The title of the edition
26 27 28 |
# File 'lib/classifoclc/edition.rb', line 26 def title @edition['title'] end |