Sha256: 003859b3d54be8488988fb3f07445ea5c60cad03b2c213aa41b30a46c9d81bdc

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

module Api
  module V1
    module Income
      # This class is responsible for all the API calls related to income propositions.
      class Propositions < Api::V1::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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
papierkram_api_client-0.1.3 lib/api/v1/income/propositions.rb
papierkram_api_client-0.1.2 lib/api/v1/income/propositions.rb
papierkram_api_client-0.1.1 lib/api/v1/income/propositions.rb
papierkram_api_client-0.1.0 lib/api/v1/income/propositions.rb