Class: Section

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

Direct Known Subclasses

Bar, Beat, Segment, Tatum

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#confidenceObject (readonly)

Returns the value of attribute confidence.



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

def confidence
  @confidence
end

#durationObject (readonly)

Returns the value of attribute duration.



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

def duration
  @duration
end

#startObject (readonly)

Returns the value of attribute start.



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

def start
  @start
end