Class: Loudness
- Inherits:
-
Object
- Object
- Loudness
- Defined in:
- lib/echonest/element/loudness.rb
Instance Attribute Summary collapse
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(time, value) ⇒ Loudness
constructor
A new instance of Loudness.
Constructor Details
#initialize(time, value) ⇒ Loudness
Returns a new instance of Loudness.
4 5 6 7 |
# File 'lib/echonest/element/loudness.rb', line 4 def initialize(time, value) @time = time @value = value end |
Instance Attribute Details
#time ⇒ Object (readonly)
Returns the value of attribute time.
2 3 4 |
# File 'lib/echonest/element/loudness.rb', line 2 def time @time end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
2 3 4 |
# File 'lib/echonest/element/loudness.rb', line 2 def value @value end |