Class: Section
- Inherits:
-
Object
- Object
- Section
- Defined in:
- lib/echonest/element/section.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#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) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(start, duration) ⇒ Section
Returns a new instance of Section.
4 5 6 7 |
# File 'lib/echonest/element/section.rb', line 4 def initialize(start, duration) @start = start @duration = duration end |
Instance Attribute Details
#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 |