Class: Wave::Wavelet
- Inherits:
-
Object
- Object
- Wave::Wavelet
- Defined in:
- lib/wave/wavelet.rb
Instance Attribute Summary collapse
-
#blips ⇒ Object
readonly
Returns the value of attribute blips.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#participants ⇒ Object
readonly
Returns the value of attribute participants.
-
#wave ⇒ Object
readonly
Returns the value of attribute wave.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Wavelet
constructor
A new instance of Wavelet.
Constructor Details
#initialize(options = {}) ⇒ Wavelet
Returns a new instance of Wavelet.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/wave/wavelet.rb', line 18 def initialize( = {}) raise Wave::WaveError, "Wavelets must be instantiated with a wave option" unless [:wave] && [:wave].is_a?(Wave) @wave = .delete(:wave) @participants = .delete(:participants) || [] @blips = .delete(:blips) || [] @wave.wavelets << self end |
Instance Attribute Details
#blips ⇒ Object (readonly)
Returns the value of attribute blips.
16 17 18 |
# File 'lib/wave/wavelet.rb', line 16 def blips @blips end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
16 17 18 |
# File 'lib/wave/wavelet.rb', line 16 def @options end |
#participants ⇒ Object (readonly)
Returns the value of attribute participants.
16 17 18 |
# File 'lib/wave/wavelet.rb', line 16 def participants @participants end |
#wave ⇒ Object (readonly)
Returns the value of attribute wave.
16 17 18 |
# File 'lib/wave/wavelet.rb', line 16 def wave @wave end |