Sha256: 7f17290144ea7eb7e8840b7a9d6a11bc4b9bf7a6486a545a003fb4e7f5e05713
Contents?: true
Size: 831 Bytes
Versions: 2
Compression:
Stored size: 831 Bytes
Contents
# frozen_string_literal: true module PapierkramApi module V1 module Endpoints module Contact # This class is responsible for all the API calls related to banking bank connections. class Companies < PapierkramApi::V1::Endpoints::Base def by(id:) get("#{@url_api_path}/contact/companies/#{id}") end def all(page: 1, page_size: 100, order_by: nil, order_direction: nil) query = { page: page, page_size: page_size } query[:order_by] = order_by if order_by query[:order_direction] = order_direction if order_direction get("#{@url_api_path}/contact/companies", query) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
papierkram_api_client-0.2.1 | lib/papierkram_api/v1/endpoints/contact/companies.rb |
papierkram_api_client-0.2.0 | lib/papierkram_api/v1/endpoints/contact/companies.rb |