Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oleander/timeedit


https://github.com/oleander/timeedit

Last synced: about 2 months ago
JSON representation

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
# }]
```