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