Sha256: bb7fcbe0ccc5caf2ed9d7e219110f320214f4f18bfb2d7c500ce4e4a73e7c3ac

Contents?: true

Size: 306 Bytes

Versions: 6

Compression:

Stored size: 306 Bytes

Contents

module Bixby
  module Model

    class Host < Base

      def self.list
        get("/hosts")
      end

      def self.find(id)
        get("/hosts/#{id}")
      end

      def self.update(id, data)
        put("/hosts/#{id}", data)
      end

      def save
        # TODO
      end

    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bixby-client-0.5.3 lib/bixby-client/model/host.rb
bixby-client-0.5.2 lib/bixby-client/model/host.rb
bixby-client-0.5.1 lib/bixby-client/model/host.rb
bixby-client-0.5.0 lib/bixby-client/model/host.rb
bixby-client-0.4.1 lib/bixby-client/model/host.rb
bixby-client-0.4.0 lib/bixby-client/model/host.rb