Class: Crowdkit::Client::Judgments
- Defined in:
- lib/crowdkit/client/judgments.rb
Instance Attribute Summary
Attributes inherited from API
#auto_pagination, #client, #stored_params
Instance Method Summary collapse
- #get(*args) ⇒ Object (also: #find, #show)
- #list(*args) ⇒ Object (also: #all)
Methods inherited from API
#arguments, extract_class_name, #id_key, #initialize, namespace, #set, #with
Methods included from API::RequestMethods
Constructor Details
This class inherits a constructor from Crowdkit::API
Instance Method Details
#get(*args) ⇒ Object Also known as: find, show
3 4 5 6 |
# File 'lib/crowdkit/client/judgments.rb', line 3 def get(*args) arguments(args, required: [:judgment_id]) do_get("judgments/#{judgment_id}") end |
#list(*args) ⇒ Object Also known as: all
10 11 12 13 14 |
# File 'lib/crowdkit/client/judgments.rb', line 10 def list(*args) arguments(args, required: [:job_id]) do_get("jobs/#{job_id}/judgments", arguments.params) end |