circleci
49 of 69 new or added lines in 4 files covered. (71.01%)
930 existing lines in 39 files now uncovered.2694 of 3083 relevant lines covered (87.38%)
296.77 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
module Mediaflux |
1✔ |
|
UNCOV
3
|
class ActorSelfDescribeRequest < Request |
1✔ |
| 4 |
# Constructor
|
|
| 5 |
# @param session_token [String] the API token for the authenticated session
|
|
|
UNCOV
6
|
def initialize(session_token:) |
1✔ |
|
UNCOV
7
|
super(session_token: session_token) |
2✔ |
|
UNCOV
8
|
end
|
|
| 9 |
|
|
| 10 |
# Specifies the Mediaflux service to use
|
|
| 11 |
# @return [String]
|
|
|
UNCOV
12
|
def self.service |
1✔ |
|
UNCOV
13
|
"actor.self.describe"
|
4✔ |
|
UNCOV
14
|
end
|
|
| 15 |
|
|
|
UNCOV
16
|
def roles |
1✔ |
|
UNCOV
17
|
xml_roles = response_xml.xpath("/response/reply/result/actor/role[@type='role']")
|
2✔ |
|
UNCOV
18
|
xml_roles.map(&:text).sort
|
2✔ |
|
UNCOV
19
|
end
|
|
|
UNCOV
20
|
end
|
|
|
UNCOV
21
|
end
|