push
circleci
Upgrade to mediaflux_dev v0.17.0 (#2118) Co-authored-by: Hector Correa <hector_correa@princeton.edu>
1 of 1 new or added line in 1 file covered. (100.0%)
941 existing lines in 40 files now uncovered.2697 of 3077 relevant lines covered (87.65%)
426.44 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
module Mediaflux |
2✔ |
|
UNCOV
3
|
class ActorSelfDescribeRequest < Request |
2✔ |
| 4 |
# Constructor
|
|
| 5 |
# @param session_token [String] the API token for the authenticated session
|
|
|
UNCOV
6
|
def initialize(session_token:) |
2✔ |
|
UNCOV
7
|
super(session_token: session_token) |
64✔ |
|
UNCOV
8
|
end
|
|
| 9 |
|
|
| 10 |
# Specifies the Mediaflux service to use
|
|
| 11 |
# @return [String]
|
|
|
UNCOV
12
|
def self.service |
2✔ |
|
UNCOV
13
|
"actor.self.describe"
|
128✔ |
|
UNCOV
14
|
end
|
|
| 15 |
|
|
|
UNCOV
16
|
def roles |
2✔ |
|
UNCOV
17
|
xml_roles = response_xml.xpath("/response/reply/result/actor/role[@type='role']")
|
64✔ |
|
UNCOV
18
|
xml_roles.map(&:text).sort
|
64✔ |
|
UNCOV
19
|
end
|
|
|
UNCOV
20
|
end
|
|
|
UNCOV
21
|
end
|