Sha256: 1bca75a0db4533eab4ed83e1457ecd0e3800de61f18646fd608c4b63fa3075f7
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true require_relative "../response/research_document_response" module ONEAccess module API class Research < Base api_path "/research" def self.document(document_id:, first_name:, last_name:, email:) resp = get("document", documentId: document_id, userFirstName: first_name, userLastName: last_name, userEmail: email) Response::ResearchDocumentResponse.from_json(resp.body) end def self.document_by_user_id(document_id:, user_id:) resp = get("documentByUserId", documentId: document_id, userId: user_id) Response::ResearchDocumentResponse.from_json(resp.body) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oneaccess-0.1.0 | lib/oneaccess/api/research.rb |