• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / allsearch_api / dc764cb3-fc9b-47a1-b010-56b68ecb28a7

01 Aug 2025 03:30PM UTC coverage: 99.514%. Remained the same
dc764cb3-fc9b-47a1-b010-56b68ecb28a7

push

circleci

web-flow
Merge pull request #384 from pulibrary/dependabot/bundler/nokogiri-1.18.9

Bump nokogiri from 1.18.8 to 1.18.9

1024 of 1029 relevant lines covered (99.51%)

92.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/models/library_database_document.rb
1
# frozen_string_literal: true
2

3
# This class is responsible for getting relevant
4
# metadata from the LibraryDatabaseRecord in the database
5
# The document is a LibraryDatabaseRecord
6
class LibraryDatabaseDocument < Document
3✔
7
  private
3✔
8

9
  def title
3✔
10
    document.name
21✔
11
  end
12

13
  # Not relevant for this service
14
  def creator; end
3✔
15

16
  # Not relevant for this service
17
  def publisher; end
3✔
18

19
  def id
3✔
20
    document.libguides_id
21✔
21
  end
22

23
  def type
3✔
24
    'Database'
21✔
25
  end
26

27
  def description
3✔
28
    sanitize document.description
21✔
29
  end
30

31
  def url
3✔
32
    document.friendly_url
21✔
33
  end
34

35
  def doc_keys
3✔
36
    [:subjects, :alternative_titles]
21✔
37
  end
38

39
  def subjects
3✔
40
    document.subjects&.join(', ')
21✔
41
  end
42

43
  def alternative_titles
3✔
44
    document.alt_names&.join(', ')
21✔
45
  end
46
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc