Module: Jibeset::Client::Fleets
- Included in:
- Jibeset::Client
- Defined in:
- lib/jibeset/client/fleets.rb
Instance Method Summary collapse
- #create_fleet(payload) ⇒ Object
- #destroy_fleet(payload) ⇒ Object
- #fleet(payload) ⇒ Object
- #fleets(payload) ⇒ Object
- #update_fleet(payload) ⇒ Object
Instance Method Details
#create_fleet(payload) ⇒ Object
13 14 15 |
# File 'lib/jibeset/client/fleets.rb', line 13 def create_fleet(payload) post("/events/#{payload[:event_id]}/fleets", payload) end |
#destroy_fleet(payload) ⇒ Object
21 22 23 |
# File 'lib/jibeset/client/fleets.rb', line 21 def destroy_fleet(payload) delete("/events/#{payload[:event_id]}/fleets/#{payload[:id]}") end |
#fleet(payload) ⇒ Object
9 10 11 |
# File 'lib/jibeset/client/fleets.rb', line 9 def fleet(payload) get("/events/#{payload[:event_id]}/fleets/#{payload[:id]}") end |
#fleets(payload) ⇒ Object
5 6 7 |
# File 'lib/jibeset/client/fleets.rb', line 5 def fleets(payload) get("/events/#{payload[:event_id]}/fleets") end |
#update_fleet(payload) ⇒ Object
17 18 19 |
# File 'lib/jibeset/client/fleets.rb', line 17 def update_fleet(payload) put("/events/#{payload[:event_id]}/fleets/#{payload[:id]}", payload) end |