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

pulibrary / tigerdata-app / bb6442c4-eb43-430c-9683-6ffb5848882a

21 Oct 2025 08:43PM UTC coverage: 87.325% (+0.4%) from 86.877%
bb6442c4-eb43-430c-9683-6ffb5848882a

Pull #2066

circleci

bess
Stop mediaflux when we stop everything else
Pull Request #2066: Stop mediaflux when we stop everything else

2625 of 3006 relevant lines covered (87.33%)

307.22 hits per line

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

100.0
/app/models/mediaflux/store_list_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
2✔
3
  class StoreListRequest < Request
2✔
4
    # Constructor
5
    # @param session_token [String] the API token for the authenticated session
6
    # @param name [String] Name of the Asset
7
    # @param collection [Boolean] create a collection asset if true
8
    # @param namespace [String] Optional Parent namespace for the asset to be created in
9
    # @param pid [Integer] Optional Parent id for the asset to be created in
10
    def initialize(session_token:)
2✔
11
      super(session_token: session_token)
1✔
12
    end
13

14
    # Specifies the Mediaflux service to use when creating assets
15
    # @return [String]
16
    def self.service
2✔
17
      "asset.store.list"
2✔
18
    end
19

20
    def stores
2✔
21
      @stores ||= begin
1✔
22
                    xml = response_xml
1✔
23
                    xml.xpath("/response/reply/result/store").map do |node|
1✔
24
                      {
25
                        id: node.xpath("@id").text,
5✔
26
                        type: node.xpath("./type").text,
27
                        name: node.xpath("./name").text,
28
                        tag: node.xpath("./tag").text
29
                      }
30
                    end
31
                  end
32
    end
33
  end
34
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