Sha256: 0c7b57591e2c30fc15ec287adbbde790dd7c94a72ea8fd0775d3ade70e3e2e4a
Contents?: true
Size: 1.58 KB
Versions: 6
Compression:
Stored size: 1.58 KB
Contents
module Ecoportal module API class V2 class Pages class PageStage class Task < Common::Content::DoubleModel passkey :id passforced :patch_ver, default: 0 passthrough :name passthrough :user_lookups, :user_ids passthrough :strategies, :scheduled_callbacks passboolean :historic passboolean :complete, :completable passdate :due, :complete_at passthrough :complete_by_id, :completed_by_name passthrough :last_strategy passboolean :is_retry, :rejected passthrough :retry_reason passthrough :rejected_by, :rejected_by_name, :rejected_notes passdate :rejected_at passboolean :escalated passdate :escalated_at passboolean :submitted passthrough :type passthrough :view_type def ooze self._parent.ooze end def fill_in? type == 'complete_page' end def review? type == 'review_page' end def complete! return mark_as_submit if fill_in? return mark_as_sign_off if review? end private def mark_as_submit doc['submitted'] = true end def mark_as_sign_off doc['sign_off'] = true end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems