Class: Mexico::FileSystem::ParticipantRole

Inherits:
Object
  • Object
show all
Extended by:
IdRef
Includes:
BoundToCorpus, ROXML
Defined in:
lib/mexico/file_system/participant_role.rb

Overview

Participant Roles describe the nature of the associated participant: Possible values are, e.g., naive participants, confederates, experimenters, etc.

Instance Attribute Summary

Attributes included from BoundToCorpus

#corpus

Instance Method Summary collapse

Methods included from IdRef

id_ref

Methods included from BoundToCorpus

#bind_to_corpus

Constructor Details

#initialize(opts = {}) ⇒ ParticipantRole

Returns a new instance of ParticipantRole.



36
37
38
39
40
41
# File 'lib/mexico/file_system/participant_role.rb', line 36

def initialize(opts={})
  # @corpus = corpus
  [:identifier,:name,:description].each do |att|
    send("#{att}=", opts[att]) if opts.has_key?(att)
  end
end