Sha256: a3615925e9f586f67178fd4d74bd7bdb71b8944647dbc0bd8308c69413798246
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oneaccess-1.3.1 | lib/oneaccess/api/v1_1/symbology.rb |
oneaccess-1.3.0 | lib/oneaccess/api/v1_1/symbology.rb |