Class: Classifoclc::Recommendations

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Recommendations

Returns a new instance of Recommendations.



20
21
22
23
24
25
# File 'lib/classifoclc/recommendations.rb', line 20

def initialize(node)
  @graphs = load_graphs(node)
  @fast = load_fast(node)
  @ddc = load_classifications(node, 'ddc')
  @lcc = load_classifications(node, 'lcc')
end

Instance Attribute Details

#ddcHash

Recommended Dewey Decimal classifications

Returns:

  • (Hash)


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

def ddc
  @ddc
end

#fastHash

Recommended FAST subject headings

Returns:

  • (Hash)


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

def fast
  @fast
end

#graphsHash

A hash of links to Google Charts graphs showing the proportion of libraries using which identifiers

Returns:

  • (Hash)


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

def graphs
  @graphs
end

#lccHash

Recommended Library of Congress classifications

Returns:

  • (Hash)


18
19
20
# File 'lib/classifoclc/recommendations.rb', line 18

def lcc
  @lcc
end