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