Sha256: 3d8dc93fe0cfbe4f67e64428bda4ea754fb946d073e187a3c27296e8c0bbe399
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module FinApps module REST class Client < BaseClient # :nodoc: using ObjectExtensions using StringExtensions include FinApps::REST::Defaults # @param [String] tenant_identifier # @param [String] tenant_token # @param [Hash] options # @return [FinApps::REST::Client] def initialize(tenant_identifier, tenant_token, logger=nil, options={}) raise FinApps::MissingArgumentsError.new 'Invalid company_identifier.' if tenant_identifier.blank? raise FinApps::MissingArgumentsError.new 'Invalid company_token.' if tenant_token.blank? merged_options = FinApps::REST::Defaults::DEFAULTS.merge(options.merge(tenant_identifier: tenant_identifier, tenant_token: tenant_token)) super(merged_options, logger) end def users @users ||= FinApps::REST::Users.new self end def orders @orders ||= FinApps::REST::Orders.new self end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finapps-2.0.11 | lib/finapps/rest/client.rb |
finapps-2.0.10 | lib/finapps/rest/client.rb |