Sha256: afab5e2aa561d4a81f809ab08b42e0c93141c71a8a8ba46adbbaebb69a207ef9

Contents?: true

Size: 697 Bytes

Versions: 9

Compression:

Stored size: 697 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 = send_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 = send_get("documentByUserId", documentId: document_id, userId: user_id)
        Response::ResearchDocumentResponse.from_json(resp.body)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
oneaccess-0.1.9 lib/oneaccess/api/research.rb
oneaccess-0.1.8 lib/oneaccess/api/research.rb
oneaccess-0.1.7 lib/oneaccess/api/research.rb
oneaccess-0.1.6 lib/oneaccess/api/research.rb
oneaccess-0.1.5 lib/oneaccess/api/research.rb
oneaccess-0.1.4 lib/oneaccess/api/research.rb
oneaccess-0.1.3 lib/oneaccess/api/research.rb
oneaccess-0.1.2 lib/oneaccess/api/research.rb
oneaccess-0.1.1 lib/oneaccess/api/research.rb