Sha256: 1e0ee82e7a97a3c20a9e868c4a51744231086877158139f9bf21e258888821f7
Contents?: true
Size: 733 Bytes
Versions: 6
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true require_relative "../../response/companies_response" require_relative "../../response/company_response" module ONEAccess module API module V1_1 class Symbology < Base api_path "/symbology" def self.companies(is_private:, page_number: 0, page_size: 20) resp = send_get("companies", Query: { PageNumber: page_number, PageSize: page_size, IsPrivate: is_private }.to_json) Response::CompaniesResponse.from_json(resp.body) end def self.company(id:) resp = send_get("companies/#{id}") Response::CompanyResponse.from_json(resp.body) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems