Class: CodaDocs::Entities::Formulas
- Defined in:
- lib/coda_docs/entities/formulas.rb
Instance Method Summary collapse
Methods inherited from Entity
#connection, #initialize, #parse_response
Constructor Details
This class inherits a constructor from CodaDocs::Entities::Entity
Instance Method Details
#all(doc_id, options = nil) ⇒ Object
4 5 6 7 |
# File 'lib/coda_docs/entities/formulas.rb', line 4 def all(doc_id, = nil) response = connection.get("/docs/#{doc_id}/formulas", query: ) parse_response(response) end |
#find(doc_id, formula_id) ⇒ Object
9 10 11 |
# File 'lib/coda_docs/entities/formulas.rb', line 9 def find(doc_id, formula_id) connection.get("/docs/#{doc_id}/formulas/#{formula_id}") end |