Sha256: 898b747dcf13efa48e115334ad28f3be633f8a17377197be3a0ae1c866f81e62
Contents?: true
Size: 731 Bytes
Versions: 4
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true module Api module V1 module Contact # This class is responsible for all the API calls related to banking bank connections. class Companies < Api::V1::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
Version data entries
4 entries across 4 versions & 1 rubygems