Class: Typingpool::Amazon::HIT::Assignment::Empty

Inherits:
Typingpool::Amazon::HIT::Assignment show all
Defined in:
lib/typingpool/amazon/hit/assignment/empty.rb

Overview

Subclass used in cases where we know Amazon’s servers have no assignments for us (because hit.full.assignments_completed == 0), so we don’t want to bother doing an HTTP request to check.

Instance Attribute Summary

Attributes inherited from Typingpool::Amazon::HIT::Assignment

#id, #status, #submitted_at, #worker_id

Instance Method Summary collapse

Methods inherited from Typingpool::Amazon::HIT::Assignment

#answers, #at_amazon, #body

Constructor Details

#initializeEmpty

Returns a new instance of Empty.



11
12
13
# File 'lib/typingpool/amazon/hit/assignment/empty.rb', line 11

def initialize
  @answers = {}
end