Class: Participant
- Inherits:
-
Object
- Object
- Participant
- Defined in:
- lib/model/participant.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Participant
constructor
A new instance of Participant.
Constructor Details
#initialize(name) ⇒ Participant
Returns a new instance of Participant.
4 5 6 |
# File 'lib/model/participant.rb', line 4 def initialize(name) self.name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/model/participant.rb', line 2 def name @name end |
Class Method Details
.from_ascript_participant(ascript_participant) ⇒ Object
8 9 10 |
# File 'lib/model/participant.rb', line 8 def self.from_ascript_participant(ascript_participant) self.new(ascript_participant.name.get()) end |