Sha256: 2f38d539013d2c3012c129844412165e541b33fc04070c4c494f6dc8951b463b

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

module Jibeset
  class Client
    module Fleets

      def fleets(payload)
        get("/events/#{payload[:event_id]}/fleets")
      end

      def fleet(payload)
        get("/events/#{payload[:event_id]}/fleets/#{payload[:id]}")
      end

      def create_fleet(payload)
        post("/events/#{payload[:event_id]}/fleets", payload)
      end

      def update_fleet(payload)
        put("/events/#{payload[:event_id]}/fleets/#{payload[:id]}", payload)
      end

      def destroy_fleet(payload)
        delete("/events/#{payload[:event_id]}/fleets/#{payload[:id]}")
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jibeset-0.2 lib/jibeset/client/fleets.rb