Class: PlanningClient::Checklist
- Inherits:
-
LogicalModel
- Object
- LogicalModel
- PlanningClient::Checklist
- Includes:
- ServiceConfiguration
- Defined in:
- app/models/planning_client/checklist.rb
Instance Method Summary collapse
-
#assign_to(options = {}) ⇒ Boolean
Copies checklists items as to_dos.
- #json_root ⇒ Object
Methods included from ServiceConfiguration
Instance Method Details
#assign_to(options = {}) ⇒ Boolean
Copies checklists items as to_dos
25 26 27 28 29 30 31 32 33 34 35 |
# File 'app/models/planning_client/checklist.rb', line 25 def assign_to(={}) resp = Typhoeus::Request.get("#{self.class.resource_uri(self.id)}/assign", params: self.class.merge_key()) if resp.code == 200 log_ok(resp) true else log_failed(resp) false end end |
#json_root ⇒ Object
37 38 39 |
# File 'app/models/planning_client/checklist.rb', line 37 def json_root 'checklist' end |