Class: Mexico::FileSystem::Participant

Inherits:
Object
  • Object
show all
Extended by:
IdRef
Includes:
BoundToCorpus, ROXML
Defined in:
lib/mexico/file_system/participant.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 = {}) ⇒ Participant

Creates a new participant object.

Parameters:

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • :identifier (String)

    The identifier of the new participant object.

  • :name (String)

    The name of the new participant object.

  • :description (String)

    The identifier of the new participant object.

  • :identifier (String)

    The identifier of the new participant object.

  • :name (String)

    The name of the new participant object.

  • :participant_role (String)

    The participant role of the new participant object.


62
63
64
65
66
67
# File 'lib/mexico/file_system/participant.rb', line 62

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