Class: Textus::Manifest::Policies::Block
- Inherits:
-
Object
- Object
- Textus::Manifest::Policies::Block
- Defined in:
- lib/textus/manifest/policies.rb
Instance Attribute Summary collapse
-
#handler_allowlist ⇒ Object
readonly
Returns the value of attribute handler_allowlist.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
-
#promote ⇒ Object
readonly
Returns the value of attribute promote.
-
#refresh ⇒ Object
readonly
Returns the value of attribute refresh.
-
#retention ⇒ Object
readonly
Returns the value of attribute retention.
Instance Method Summary collapse
-
#initialize(raw) ⇒ Block
constructor
A new instance of Block.
Constructor Details
#initialize(raw) ⇒ Block
Returns a new instance of Block.
49 50 51 52 53 54 55 |
# File 'lib/textus/manifest/policies.rb', line 49 def initialize(raw) @match = raw["match"] or raise Textus::UsageError.new("policy block missing match:") @refresh = parse_refresh(raw["refresh"]) @handler_allowlist = parse_handler_allowlist(raw["handler_allowlist"]) @promote = parse_promote(raw["promote_requires"]) @retention = raw["retention"] # reserved — passthrough only end |
Instance Attribute Details
#handler_allowlist ⇒ Object (readonly)
Returns the value of attribute handler_allowlist.
47 48 49 |
# File 'lib/textus/manifest/policies.rb', line 47 def handler_allowlist @handler_allowlist end |
#match ⇒ Object (readonly)
Returns the value of attribute match.
47 48 49 |
# File 'lib/textus/manifest/policies.rb', line 47 def match @match end |
#promote ⇒ Object (readonly)
Returns the value of attribute promote.
47 48 49 |
# File 'lib/textus/manifest/policies.rb', line 47 def promote @promote end |
#refresh ⇒ Object (readonly)
Returns the value of attribute refresh.
47 48 49 |
# File 'lib/textus/manifest/policies.rb', line 47 def refresh @refresh end |
#retention ⇒ Object (readonly)
Returns the value of attribute retention.
47 48 49 |
# File 'lib/textus/manifest/policies.rb', line 47 def retention @retention end |