https://github.com/oleander/timeedit
https://github.com/oleander/timeedit
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oleander/timeedit
- Owner: oleander
- Created: 2012-04-21T15:18:59.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-21T15:26:55.000Z (about 13 years ago)
- Last Synced: 2025-01-21T14:47:39.490Z (6 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TimeEdit
Ruby bindings for TimeEdit
## How to use
### List all rooms
``` ruby
TimeEdit::Rooms.new({
search: "ED4422"
}).results
# => [{
# room: "ED4422",
# id: "12345.186"
# }]
```### List all bookings for a particular room
``` ruby
TimeEdit::Bookings.new({
room: "ED4422",
start_time: Time.now,
end_time: 3.days.from_now
}).results
# => [{
# from: Time.now
# to: 45.minutes.from_now
# }]
```