Sha256: c763176b0b2482268a1abd0ba5e653353666abf443745e85a7ff5fdf2939ce76

Contents?: true

Size: 357 Bytes

Versions: 32

Compression:

Stored size: 357 Bytes

Contents

# Parses out the RegisterHITType response
#
# Example response:
# <RegisterHITTypeResult>
#   <Request>
#     <IsValid>True</IsValid>
#   </Request>
#   <HITTypeId>KZ3GKTRXBWGYX8WXBW60</HITTypeId>
# </RegisterHITTypeResult>

module RTurk
  class RegisterHITTypeResponse < Response
    def type_id
      @xml.xpath('//HITTypeId').inner_text
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rturk-2.12.1 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.12.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.11.3 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.11.2 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.11.1 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.11.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.10.3 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.10.2 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.10.1 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.10.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.9.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.8.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.7.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.6.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.5.2 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.5.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.4.1 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.4.0 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.3.6 lib/rturk/parsers/responses/register_hit_type_response.rb
rturk-2.3.5 lib/rturk/parsers/responses/register_hit_type_response.rb