Class: SpectrumAnalyzer::Spectrum
- Inherits:
-
Object
- Object
- SpectrumAnalyzer::Spectrum
- Defined in:
- lib/spectrum-analyzer/criteria/spectrum.rb
Instance Attribute Summary collapse
-
#domains ⇒ Object
Returns the value of attribute domains.
-
#entire_spectrum ⇒ Object
Returns the value of attribute entire_spectrum.
-
#num_occurrences ⇒ Object
Returns the value of attribute num_occurrences.
Instance Method Summary collapse
-
#initialize(spectrum = []) ⇒ Spectrum
constructor
A new instance of Spectrum.
Constructor Details
#initialize(spectrum = []) ⇒ Spectrum
Returns a new instance of Spectrum.
5 6 7 |
# File 'lib/spectrum-analyzer/criteria/spectrum.rb', line 5 def initialize(spectrum = []) @domains = spectrum end |
Instance Attribute Details
#domains ⇒ Object
Returns the value of attribute domains.
3 4 5 |
# File 'lib/spectrum-analyzer/criteria/spectrum.rb', line 3 def domains @domains end |
#entire_spectrum ⇒ Object
Returns the value of attribute entire_spectrum.
3 4 5 |
# File 'lib/spectrum-analyzer/criteria/spectrum.rb', line 3 def entire_spectrum @entire_spectrum end |
#num_occurrences ⇒ Object
Returns the value of attribute num_occurrences.
3 4 5 |
# File 'lib/spectrum-analyzer/criteria/spectrum.rb', line 3 def num_occurrences @num_occurrences end |