Sha256: 994504947fc5107aeeec11ac518bd065e29aa8f9c1f168ce24d93a1bcc4ab106

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

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

      def formula(doc_id, formula_id, options = {})
        self.class.get("/docs/#{doc_id}/formulas/#{formula_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/formulas.rb
coda_docs-0.1.1.1 lib/coda_docs/client/formulas.rb
coda_docs-0.1.1 lib/coda_docs/client/formulas.rb