0.0
No release in over 3 years
Low commit activity in last 3 years
Ruby wrapper around BookingSync API Configure by adding the following: require 'bookingsync' BookingSync::Base.user = 'your_api_auth_token'
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.3.8
= 0.4.2
= 1.0.0
= 1.0.3
= 1.4.4
~> 0.9
= 0.4.0
~> 2.8.0
~> 0.7.2

Runtime

 Project Readme

BookingSync Build Status

What is it?

This gem provides a set of classes to access information on BookingSync via the published API:

Booking, Client, Rental and Inquiry.

All these classes are inherited from ActiveResouce::Base. You can refer to the ActiveResouce documentation for more information.

Installing

gem install bookingsync

or within a Rails 3 application

gem "bookingsync"

Dependencies

This gem depends on ActiveResource 3.x

Configure your key

require 'bookingsync'

BookingSync::Base.user = 'api-auth-token'

If you are using this in a Rails application, putting this code in a config/initializers/bookingsync.rb file is recommended. See config_initializers_bookingsync.rb in the examples/ directory.

Documentation

Further documentation can be found on rdoc.info.

Usage

@rental = BookingSync::Rental.create(:name => 'Wonderful Rental')

@rentals = BookingSync::Rental.all

@bookings = BookingSync::Booking.find_all_across_pages(:params => {:rental_id => 12345})

@bookings = BookingSync::Rental.find(12345).bookings

License

This code is free to be used under the terms of the MIT license.

Authors