Sha256: 7ad03d1468a196441037a417198d8e7fc922895fbad2a784dedf6c84cfe83716

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

module CodaDocs
  module Entities
    class Rows < Entity
      def all(doc_id:, table_id:)
        response = connection.get("/docs/#{doc_id}/tables/#{table_id}/rows")
        parse_response(response)
      end

      def find(doc_id:, table_id:, row_id:)
        connection.get("/docs/#{doc_id}/tables/#{table_id}/rows/#{row_id}")
      end

      def delete(doc_id:, table_id:, row_id:)
        connection.delete("/docs/#{doc_id}/tables/#{table_id}/rows/#{row_id}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coda_docs-1.0.0 lib/coda_docs/entities/rows.rb
coda_docs-0.2.0.pre.beta lib/coda_docs/entities/rows.rb