Sha256: 49decc63a9ef80679c1e018f5d3b06eef26884f2501e350ff92e54de9015ef76
Contents?: true
Size: 1.12 KB
Versions: 14
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true # # Author:: Chef Partner Engineering (<partnereng@chef.io>) # Copyright:: Copyright (c) 2015 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # module Vra class Requests def initialize(client) @client = client end def all_requests requests = [] items = @client.http_get_paginated_array!("/catalog-service/api/consumer/requests") items.each do |item| requests << Vra::Request.new(@client, item["id"]) end requests end def by_id(id) Vra::Request.new(@client, id) end end end
Version data entries
14 entries across 14 versions & 1 rubygems