Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
12 | class PolicyGroup |
||
13 | include Mixin::Entity |
||
14 | |||
15 | attribute :account, Policy, default: Policy::EDIT |
||
16 | attribute :group, Policy, default: Policy::EDIT |
||
17 | |||
18 | DEFAULT = new.tap do |instance| |
||
19 | instance.account = Policy::EDIT |
||
20 | instance.group = Policy::EDIT |
||
21 | end |
||
22 | |||
23 | def to_s |
||
24 | "Partition.Policy {account: #{account}, group: #{group}}" |
||
25 | end |
||
26 | end |
||
27 | end |
||
32 |