Sha256: bfb014e6e7eeed9ee90d338e6995e96c68889209b2e09f2b2b772a6fb3d2272d

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

module CodaDocs
  class Client
    module Tables
      def tables(doc_id, options = {})
        response = self.class.get("/docs/#{doc_id}/tables", query: options)
        response.parsed_response['items']
      end

      def table(doc_id, table_id, options = {})
        self.class.get("/docs/#{doc_id}/tables/#{table_id}", query: options)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coda_docs-0.1.2 lib/coda_docs/client/tables.rb
coda_docs-0.1.1.1 lib/coda_docs/client/tables.rb
coda_docs-0.1.1 lib/coda_docs/client/tables.rb