Sha256: 2d22961d643dc3a64d08d96df259a71f1804fe239f6e72ac80b0da849fa3257e

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

module PapierkramApi
  module V1
    module Endpoints
      module Income
        # This class is responsible for all the API calls related to income propositions.
        class Propositions < PapierkramApi::V1::Endpoints::Base
          def by(id:)
            get("#{@url_api_path}/income/propositions/#{id}")
          end

          def all
            get("#{@url_api_path}/income/propositions")
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
papierkram_api_client-0.2.2 lib/papierkram_api/v1/endpoints/income/propositions.rb
papierkram_api_client-0.2.1 lib/papierkram_api/v1/endpoints/income/propositions.rb
papierkram_api_client-0.2.0 lib/papierkram_api/v1/endpoints/income/propositions.rb