Class: WolasSubmission

Inherits:
Object
  • Object
show all
Defined in:
lib/wolas_submission.rb,
lib/wolas_submission/version.rb

Defined Under Namespace

Classes: RequestFailure, RequestMalformed, RequestUnsuccessful

Constant Summary collapse

VERSION =
'1.1.0'

Instance Method Summary collapse

Constructor Details

#initialize(tenant_id, endpoint) ⇒ WolasSubmission

initialize the class with a tenant_id to be sent with every request made for identification and security purposes.



18
19
20
21
# File 'lib/wolas_submission.rb', line 18

def initialize(tenant_id, endpoint)
  @tenant_id = tenant_id
  @endpoint = endpoint
end

Instance Method Details

#get_submissions(token) ⇒ Object

for a single token gets all submissions inner joining through to answers for a top-level response



25
26
27
# File 'lib/wolas_submission.rb', line 25

def get_submissions(token)
  connect("#{@endpoint}/submissionservice/submissions?token=#{token}", configure_headers)
end