Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleander/timeedit
https://github.com/oleander/timeedit
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oleander/timeedit
- Owner: oleander
- Created: 2012-04-21T15:18:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-21T15:26:55.000Z (over 12 years ago)
- Last Synced: 2023-04-10T09:40:11.773Z (almost 2 years ago)
- Language: Ruby
- Size: 125 KB
- Stars: 1
- Watchers: 1
- 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
# }]
```