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

Gaps left by #intersection #53

Open
jhovad opened this issue Nov 20, 2018 · 1 comment
Open

Gaps left by #intersection #53

jhovad opened this issue Nov 20, 2018 · 1 comment
Labels

Comments

@jhovad
Copy link

jhovad commented Nov 20, 2018

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)

@arnau
Copy link
Owner

arnau commented Nov 20, 2018

Hi @jhovad, the idea worth having a look but I'm not likely to have time any time soon. I'm happy to review any PR implementing it 👍

@arnau arnau added the feature label Nov 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants