Create/update/delete reservations

Added the example.

On Tue, Dec 9, 2014 at 2:01 PM, Brian McManus <notifications@github.com>
wrote:

> In README.md
> <https://github.com/CheckMateIO/checkmate_ruby/pull/3#discussion-diff-21566443>
> :
>
> > @@ -65,3 +65,31 @@ You can request a specific reservation from the Checkmate API.
> >
> >      # reservation with id 123452
> >      client.show_reservation(123452)
> > +
> > +### Create reservation
> > +
> > +You can create a reservation in Checkmate using either an existing property id, or by
> > +creating a new property within the request.
> > +
> > +    # reservation under property 93
> > +    client.create_reservation({:external_id => "someid123", :confirmation_number => "sdlfkjweo324", \
> > +        :last_name => "smith", :email => "frank@smith.io", :start_on => "12/12/2016", :end_on => "12/14/2016"}, 93)
> > +
> > +    # creating a new property
> > +    client.create_reservation({:external_id => "someid123", :confirmation_number => "sdlfkjweo324", \
> > +        :last_name => "smith", :email => "frank@smith.io", :start_on => "12/12/2016", :end_on => "12/14/2016", \
> > +        :property => {:name => "New Hotel", :address => {:street => "123 Leaf Lane", :country_code => "US"}}})
> > +
>
> It could but was obviously need to work to prevent that from happening. If
> the documentation changes, it is likely it would require updates to the
> various client libraries (including possibly their documentation). That
> being said I think it's OK to not mention it but I feel like it would be
> helpful to end-users to let them know they have options.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/CheckMateIO/checkmate_ruby/pull/3/files#r21566443>.
>