Sha256: 4e06b1f3cc4bc4da1b8880c24800cd82d1ab016c1f21a83850b7d8d898eb7714

Contents?: true

Size: 1.4 KB

Versions: 4

Compression:

Stored size: 1.4 KB

Contents

# This file is part of the MExiCo gem.
# Copyright (c) 2012-2014 Peter Menke, SFB 673, Universität Bielefeld
# http://www.sfb673.org
#
# MExiCo is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# MExiCo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with MExiCo. If not, see
# <http://www.gnu.org/licenses/>.

# Participant Roles describe the nature of the associated participant:
# Possible values are, e.g., naive participants, confederates, 
# experimenters, etc.
class Mexico::FileSystem::ParticipantRole
  
  include Mexico::FileSystem::BoundToCorpus
  extend Mexico::FileSystem::IdRef
  
  
  include ::ROXML
  
  xml_accessor :identifier,     :from => '@identifier' 
  xml_accessor :name,           :from => '@name' 
  
  xml_accessor :description, :from => "Description"     
  
  
  def initialize(opts={})
    # @corpus = corpus
    [:identifier,:name,:description].each do |att|
      send("#{att}=", opts[att]) if opts.has_key?(att)
    end
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mexico-0.0.12 lib/mexico/file_system/participant_role.rb
mexico-0.0.11 lib/mexico/file_system/participant_role.rb
mexico-0.0.10 lib/mexico/file_system/participant_role.rb
mexico-0.0.9 lib/mexico/file_system/participant_role.rb