Sha256: 7042f5900c37e8be9d2667a0323f6fbc1b311b28b00e72de62384a4e39621ec5
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
module Jibeset class Client module Boat def boats(payload={}) if payload[:boat] post('/boats', payload) elsif payload[:user_id] get("/users/#{payload[:user_id]}/boats") else get("/boats") end end def boat(payload) get("/boats/#{payload[:id]}") end def update_boat(payload) put("/boats/#{payload[:boat][:id]}", payload) end def destroy_boat(payload) delete("/boats/#{payload[:id]}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jibeset-0.2 | lib/jibeset/client/boats.rb |