Sha256: 4cd9fb2f1a04e7620fa483a467392b5531320a4e0d34cdbe68cd4fc34946708a

Contents?: true

Size: 1.47 KB

Versions: 5

Compression:

Stored size: 1.47 KB

Contents

module ForemanApi
  module Resources
    class Setting < ForemanApi::Base
      def self.doc
        @doc ||= ForemanApi.doc['resources']["settings"]
      end

      # @param [Hash] params a hash of params to be passed to the service
      # @option params [String] order Sort results
      # @option params [String] page Paginate results
      # @option params [String] per_page Number of entries per request
      # @option params [String] search Filter results
      #
      # @param [Hash] headers additional http headers
      # @return [Array] First item: parsed data; second item: raw body
      def index(params = {}, headers = {})
        perform_call(__method__, params, headers)
      end

      # @param [Hash] params a hash of params to be passed to the service
      # @option params [String] id
      #
      # @param [Hash] headers additional http headers
      # @return [Array] First item: parsed data; second item: raw body
      def show(params = {}, headers = {})
        perform_call(__method__, params, headers)
      end

      # @param [Hash] params a hash of params to be passed to the service
      # @option params [String] id
      # @option params [Hash] setting
      #   allowed keys are:
      #   * value [String]
      #
      # @param [Hash] headers additional http headers
      # @return [Array] First item: parsed data; second item: raw body
      def update(params = {}, headers = {})
        perform_call(__method__, params, headers)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_api-0.1.6 lib/foreman_api/resources/setting.rb
foreman_api-0.1.5 lib/foreman_api/resources/setting.rb
foreman_api-0.1.4 lib/foreman_api/resources/setting.rb
foreman_api-0.1.3 lib/foreman_api/resources/setting.rb
foreman_api-0.1.2 lib/foreman_api/resources/setting.rb