How to reorganized time.points in timeline diapasons?

Hi,

Timer has_many points

and I want to create timeline, where timer.start(Time.now)

every moment i can timer.points.create(Time.now)

and of course timeline have a timer.end(Time.now)

point_params(:id, :time)

How reorganizing timer.points in simple timer with diapasons, where, for exemple, Timeline.new{timer.points.first(0…5), timer.points.second(6…12) … timer.points.last(39…44)} ?

Any solutions, ideas, practice?

TY

I have utterly no clue what you're trying to do, but sure, here's an idea:

Write some tests.

Describe the desired behavior *in code* and you're nearly there. It's a habit you can't acquire soon enough :slight_smile:

Good luck.