Sha256: 37e4a63d1c9a83beef93eb27a50fecaaff8fdfd1e783d8da3af69703dd2b4f10

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

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

      def find(doc_id:, table_id:)
        connection.get("/docs/#{doc_id}/tables/#{table_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/tables.rb
coda_docs-0.2.0.pre.beta lib/coda_docs/entities/tables.rb