Class: LibPtgBox::Unmarshaller::FamilyFolder

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/modules/lib_ptg_box/unmarshaller/family_folder.rb

Instance Method Summary collapse

Instance Method Details

#cataloging_marc_folderObject


33
34
35
36
37
38
39
40
41
42
43
44
# File 'app/modules/lib_ptg_box/unmarshaller/family_folder.rb', line 33

def cataloging_marc_folder
  @cataloging_marc_folder ||= begin
    f = Box::Folder.null_folder
    folders.each do |folder|
      next unless /cataloging/i.match?(folder.name)

      f = folder
      break
    end
    MarcFolder.new(f)
  end
end

#kbart_folderObject


6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/modules/lib_ptg_box/unmarshaller/family_folder.rb', line 6

def kbart_folder
  @kbart_folder ||= begin
    f = Box::Folder.null_folder
    folders.each do |folder|
      next unless /kbart/i.match?(folder.name)

      f = folder
      break
    end
    KbartFolder.new(f)
  end
end

#marc_folderObject


19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/modules/lib_ptg_box/unmarshaller/family_folder.rb', line 19

def marc_folder
  @marc_folder ||= begin
    f = Box::Folder.null_folder
    folders.each do |folder|
      next if /kbart/i.match?(folder.name)
      next if /cataloging/i.match?(folder.name)

      f = folder
      break
    end
    MarcFolder.new(f)
  end
end