Project

General

Profile

Revision df1b6e2a

Added by Partha Aji about 5 years ago

Fixes #21661 - Retrieve All for consumers

This commit adds a couple of methods to retrieve all consumers in one
go.

View differences:

lib/runcible/resources/consumer.rb
24 24
      #
25 25
      # @param  [String]                id  the ID of the consumer
26 26
      # @return [RestClient::Response]
27
      def retrieve(id)
27
      def retrieve(id = nil)
28 28
        call(:get, path(id))
29 29
      end
30 30

  
31
      # Retrieves all consumers
32
      #
33
      # @return [RestClient::Response]
34
      def retrieve_all
35
        retrieve
36
      end
37

  
31 38
      # Updates a consumer
32 39
      #
33 40
      # @param  [String]                id        the ID of the consumer

Also available in: Unified diff