Sha256: ad446baf189aa7126dfe54e6396b1dbed00643ade7a5f4ebc66be3e90f3b407a

Contents?: true

Size: 656 Bytes

Versions: 3

Compression:

Stored size: 656 Bytes

Contents

# <GetReviewableHITsResult>
#   <Request>
#     <IsValid>True</IsValid>
#   </Request>
#   <NumResults>3</NumResults>
#   <TotalNumResults>3</TotalNumResults>
#   <PageNumber>1</PageNumber>
#   <HIT>
#     <HITId>GBHZVQX3EHXZ2AYDY2T0</HITId>
#   </HIT>
#   <HIT>
#     <HITId>GBHZVQX3EHXZ2AYDY2T1</HITId>
#   </HIT>
#   <HIT>
#     <HITId>GBHZVQX3EHXZ2AYDY2T2</HITId>
#   </HIT>
# </GetReviewableHITsResult>

module RTurk
  
  class GetReviewableHITsResponse < Response
    
    def hits
      @hits ||= []
      @xml.xpath('//HIT').each do |hit_xml|
        @hits << RTurk::Hit.new(hit_xml.inner_text.strip)
      end
      @hits
    end
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rturk-2.0.2 lib/rturk/responses/get_reviewable_hits_response.rb
rturk-2.0.1 lib/rturk/responses/get_reviewable_hits_response.rb
rturk-2.0.0 lib/rturk/responses/get_reviewable_hits_response.rb