Sha256: 8ca13afa87e65c3b5c835b4ccd42bab608c9489eaf8f5667f6154cd40598fb00

Contents?: true

Size: 246 Bytes

Versions: 12

Compression:

Stored size: 246 Bytes

Contents

module RTurk
  class GetAssignmentResponse < Response

    def assignment
      @assignment ||= AssignmentParser.new(@xml.xpath('//Assignment').first)
    end

    def hit
      @hit ||= HITParser.new(@xml.xpath('//HIT').first)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rturk-2.12.1 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.12.0 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.11.3 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.11.2 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.11.1 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.11.0 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.10.3 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.10.2 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.10.1 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.10.0 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.9.0 lib/rturk/parsers/responses/get_assignment_response.rb
rturk-2.8.0 lib/rturk/parsers/responses/get_assignment_response.rb