Class: Mexico::FileSystem::ParticipantRole
- Inherits:
-
Object
- Object
- Mexico::FileSystem::ParticipantRole
- 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
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ParticipantRole
constructor
A new instance of ParticipantRole.
Methods included from IdRef
Methods included from BoundToCorpus
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 |