Sha256: c1557f109aa470af5f845b54281eff36dc636b00b012714266331ef7316e8412

Contents?: true

Size: 1.15 KB

Versions: 13

Compression:

Stored size: 1.15 KB

Contents

# Parses a QualificationType object

module RTurk
  class QualificationTypeParser < RTurk::Parser
    attr_reader :qualification_type_id, :creation_time, :name, :description,
                :keywords, :status, :retry_delay_in_seconds, :is_requestable,
                :test, :test_duration_in_seconds, :answer_key, :auto_granted,
                :auto_granted_value

    def initialize(qualifications_xml)
      @xml_obj = qualifications_xml
      map_content(@xml_obj,
                  :qualification_type_id => 'QualificationTypeId',
                  :creation_time => 'CreationTime',
                  :name => 'Name',
                  :description => 'Description',
                  :keywords => 'Keywords',
                  :status => 'QualificationTypeStatus',
                  :retry_delay_in_seconds => 'RetryDelayInSeconds',
                  :is_requestable => 'IsRequestable',
                  :test => 'Test',
                  :test_duration_in_seconds => 'TestDurationInSeconds',
                  :answer_key => 'AnswerKey',
                  :auto_granted => 'AutoGranted',
                  :auto_granted_value => 'AutoGrantedValue')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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