Sha256: a6bd3b55cc3dbccc9040c85ca16559cd381696e649f49bfa27bf152165f705d9
Contents?: true
Size: 845 Bytes
Versions: 12
Compression:
Stored size: 845 Bytes
Contents
# WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema module BaseCRM class AccountsService def initialize(client) @client = client end # Retrieve account details # # get '/accounts/self' # # Returns detailed information about your account # # @return [Account] Resource object. def self _, _, root = @client.get("/accounts/self") Account.new(root[:data]) end private def validate_type!(account) raise TypeError unless account.is_a?(Account) || account.is_a?(Hash) end def extract_params!(account, *args) params = account.to_h.select{ |k, _| args.include?(k) } raise ArgumentError, "one of required attributes is missing. Expected: #{args.join(',')}" if params.count != args.length params end end end
Version data entries
12 entries across 12 versions & 1 rubygems