Sha256: 7e3e5ebb611f556b7e99a01d5b051c1e1b3f90f95aac5bf2489d9d86d3c93d83
Contents?: true
Size: 781 Bytes
Versions: 7
Compression:
Stored size: 781 Bytes
Contents
# frozen_string_literal: true require_relative "../../response/companies_response" require_relative "../../response/company_response" module ONEAccess module API module V1_1 # rubocop:disable Style/ClassAndModuleCamelCase 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
7 entries across 7 versions & 1 rubygems