Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Gaps left by #intersection #53

@jhovad

Description

@jhovad

It would be very helpful to have complementary method to #intersection ... like here:
https://github.com/rossmeissl/timeframe/blob/2cd85dd2a3ec2fbdf5391bf49870d6fd27265bd7/lib/timeframe.rb#L260

For example: I have general availability of the resource and Clients can book this resource. Then I would like to display availability that left after this bookings. There I need something like
current_availability = general_availability.gaps_left_by(bookings)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions