Class: LcpRuby::Workflow::Approval::SystemEvaluator
- Inherits:
-
Object
- Object
- LcpRuby::Workflow::Approval::SystemEvaluator
- Defined in:
- lib/lcp_ruby/workflow/approval/system_evaluator.rb
Instance Attribute Summary collapse
-
#roles ⇒ Object
readonly
Returns the value of attribute roles.
Instance Method Summary collapse
- #can? ⇒ Boolean
- #can_for_record? ⇒ Boolean
-
#initialize(roles: []) ⇒ SystemEvaluator
constructor
A new instance of SystemEvaluator.
- #readable_fields ⇒ Object
- #writable_fields ⇒ Object
Constructor Details
#initialize(roles: []) ⇒ SystemEvaluator
Returns a new instance of SystemEvaluator.
7 8 9 |
# File 'lib/lcp_ruby/workflow/approval/system_evaluator.rb', line 7 def initialize(roles: []) @roles = roles.map(&:to_s) end |
Instance Attribute Details
#roles ⇒ Object (readonly)
Returns the value of attribute roles.
5 6 7 |
# File 'lib/lcp_ruby/workflow/approval/system_evaluator.rb', line 5 def roles @roles end |
Instance Method Details
#can? ⇒ Boolean
11 12 13 |
# File 'lib/lcp_ruby/workflow/approval/system_evaluator.rb', line 11 def can?(*) true end |
#can_for_record? ⇒ Boolean
15 16 17 |
# File 'lib/lcp_ruby/workflow/approval/system_evaluator.rb', line 15 def can_for_record?(*) true end |
#readable_fields ⇒ Object
19 20 21 |
# File 'lib/lcp_ruby/workflow/approval/system_evaluator.rb', line 19 def readable_fields(*) nil end |
#writable_fields ⇒ Object
23 24 25 |
# File 'lib/lcp_ruby/workflow/approval/system_evaluator.rb', line 23 def writable_fields(*) nil end |