Sha256: 91157b62d7fac5e96d146aa8b5aef93b8831fb020845f7f427f3c71524852e76

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

module G5Updatable
  class AllClientUrnsFetcher
    def self.fetch_uids
      return unless urns = G5Updatable::Fetcher.get_with_token(url).try(:[], 'clients')
      urns.collect do |urn|
        "#{hub_url}/clients/#{urn['urn']}.json"
      end
    end

    def self.url
      "#{hub_url}/urns.json"
    end

    def self.hub_url
      G5Updatable::HUB_URL
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
g5_updatable-1.0.2.pre.1 app/lib/g5_updatable/all_client_urns_fetcher.rb