Class: SpectrumAnalyzer::File
- Inherits:
-
Object
- Object
- SpectrumAnalyzer::File
- Defined in:
- lib/spectrum-analyzer/criteria/file.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
Instance Method Summary collapse
-
#initialize(name) ⇒ File
constructor
A new instance of File.
- #read ⇒ Object
Constructor Details
#initialize(name) ⇒ File
Returns a new instance of File.
5 6 7 |
# File 'lib/spectrum-analyzer/criteria/file.rb', line 5 def initialize(name) @name = name || '' end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/spectrum-analyzer/criteria/file.rb', line 3 def name @name end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
3 4 5 |
# File 'lib/spectrum-analyzer/criteria/file.rb', line 3 def sample_rate @sample_rate end |
Instance Method Details
#read ⇒ Object
9 10 11 |
# File 'lib/spectrum-analyzer/criteria/file.rb', line 9 def read end |