push
circleci
0 of 19 new or added lines in 1 file covered. (0.0%)
647 existing lines in 33 files now uncovered.2847 of 3126 relevant lines covered (91.07%)
540.6 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
NEW
|
module Mediaflux |
2✔ |
|
NEW
|
class StringReverse < Request |
2✔ |
| 4 |
# This is only here to prove that we can use a mediaflux service that is provided by
|
|
| 5 |
# a java plugin.
|
|
| 6 |
|
|
| 7 |
# Constructor
|
|
| 8 |
# @param session_token [String] the API token for the authenticated session
|
|
|
NEW
|
def initialize(string:, session_token:) |
2✔ |
|
NEW
|
super(session_token: session_token) |
1✔ |
|
NEW
|
@string = string
|
1✔ |
|
NEW
|
end
|
|
| 13 |
|
|
| 14 |
# Specifies the Mediaflux service to use when querying Mediaflux.
|
|
| 15 |
# @return [String]
|
|
|
NEW
|
def self.service |
2✔ |
|
NEW
|
"tigerdata.trivial"
|
2✔ |
|
NEW
|
end
|
|
| 19 |
|
|
|
NEW
|
private |
2✔ |
| 21 |
|
|
|
NEW
|
def build_http_request_body(name:) |
2✔ |
|
NEW
|
super do |xml| |
2✔ |
|
NEW
|
xml.args do
|
2✔ |
|
NEW
|
xml.string @string
|
2✔ |
|
NEW
|
end
|
|
|
NEW
|
end
|
|
|
NEW
|
end
|
|
|
NEW
|
end
|
|
|
NEW
|
end
|