Class: Wave::Participant
- Inherits:
-
Object
- Object
- Wave::Participant
- Defined in:
- lib/wave/participant.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#wavelet ⇒ Object
readonly
Returns the value of attribute wavelet.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Participant
constructor
A new instance of Participant.
Constructor Details
#initialize(options = {}) ⇒ Participant
Returns a new instance of Participant.
15 16 17 18 19 20 21 |
# File 'lib/wave/participant.rb', line 15 def initialize( = {}) @wavelet = [:wavelet] raise Wave::WaveError, "Participant requires wavelet" unless @wavelet @wavelet.participants << self @id = [:id] raise Wave::WaveError, "Participant requires id" unless @id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/wave/participant.rb', line 12 def id @id end |
#wavelet ⇒ Object (readonly)
Returns the value of attribute wavelet.
12 13 14 |
# File 'lib/wave/participant.rb', line 12 def wavelet @wavelet end |