Code Monkey home page Code Monkey logo

bookingsync-ruby's Introduction

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

bookingsync-ruby's People

Contributors

zencocoon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

buzprjs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.