Class: ValueWithConfidence

Inherits:
Object
  • Object
show all
Defined in:
lib/echonest/element/value_with_confidence.rb

Direct Known Subclasses

Bar, Beat, Tatum

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#confidenceObject (readonly)

Returns the value of attribute confidence.



2
3
4
# File 'lib/echonest/element/value_with_confidence.rb', line 2

def confidence
  @confidence
end

#valueObject (readonly)

Returns the value of attribute value.



2
3
4
# File 'lib/echonest/element/value_with_confidence.rb', line 2

def value
  @value
end