Class: Osu::DB::TimingPoint
- Inherits:
-
Object
- Object
- Osu::DB::TimingPoint
- Defined in:
- lib/osu-db/timing_point.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bpm ⇒ Object
readonly
Returns the value of attribute bpm.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(offset, bmp) ⇒ TimingPoint
constructor
A new instance of TimingPoint.
Constructor Details
#initialize(offset, bmp) ⇒ TimingPoint
Returns a new instance of TimingPoint.
8 9 10 11 |
# File 'lib/osu-db/timing_point.rb', line 8 def initialize(offset, bmp) @offset = offset @bpm = bmp end |
Instance Attribute Details
#bpm ⇒ Object (readonly)
Returns the value of attribute bpm.
6 7 8 |
# File 'lib/osu-db/timing_point.rb', line 6 def bpm @bpm end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
6 7 8 |
# File 'lib/osu-db/timing_point.rb', line 6 def offset @offset end |