travis-ci
10 of 10 new or added lines in 3 files covered. (100.0%)
3163 of 3238 relevant lines covered (97.68%)
19.99 hits per line
1 |
module Exlibris |
1 only 2.2.2 ✔ |
2 |
module Primo |
1 only 2.2.2 ✔ |
3 |
module WebService |
1 only 2.2.2 ✔ |
4 |
module Response |
1 only 2.2.2 ✔ |
5 |
#
|
|
6 |
#
|
|
7 |
#
|
|
8 |
class Reviews < Base |
1 only 2.2.2 ✔ |
9 |
self.abstract = true |
1 only 2.2.2 ✔ |
10 |
end
|
|
11 |
|
|
12 |
#
|
|
13 |
#
|
|
14 |
#
|
|
15 |
class GetReviews < Reviews |
1 only 2.2.2 ✔ |
16 |
def reviews |
1 only 2.2.2 ✔ |
17 |
@reviews ||= xml.root.xpath("//tags_reviews:Review", response_namespaces).collect { |review| |
× |
18 |
Exlibris::Primo::Review.new(:raw_xml => review.to_xml) } |
18 only 2.2.2 ✔ |
19 |
end
|
|
20 |
end
|
|
21 |
|
|
22 |
#
|
|
23 |
#
|
|
24 |
#
|
|
25 |
class GetAllMyReviews < GetReviews; end |
1 only 2.2.2 ✔ |
26 |
|
|
27 |
#
|
|
28 |
#
|
|
29 |
#
|
|
30 |
class GetReviewsForRecord < GetReviews; end |
1 only 2.2.2 ✔ |
31 |
|
|
32 |
#
|
|
33 |
#
|
|
34 |
#
|
|
35 |
class GetReviewsByRating < GetReviews; end |
1 only 2.2.2 ✔ |
36 |
|
|
37 |
#
|
|
38 |
#
|
|
39 |
#
|
|
40 |
class AddReview < Reviews; end |
1 only 2.2.2 ✔ |
41 |
|
|
42 |
#
|
|
43 |
#
|
|
44 |
#
|
|
45 |
class RemoveReview < Reviews; end |
1 only 2.2.2 ✔ |
46 |
end
|
|
47 |
end
|
|
48 |
end
|
|
49 |
end
|