Sha256: 710eaa9c39324f5e111ddbd640746db2b790b7c4c867b367d742b5d2382e24d1

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

module CodaDocs
  module Entities
    class Formulas < Entity
      def all(doc_id)
        response = connection.get("/docs/#{doc_id}/formulas", query: options)
        parse_response(response)
      end

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