Sha256: b463877b001031b7a4e6f84ab2b9ddb4861f4f5117ae3f40a1b75f288dfc2146

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

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

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