Class: Textus::Manifest::Rules::Block
- Inherits:
-
Object
- Object
- Textus::Manifest::Rules::Block
- Defined in:
- lib/textus/manifest/rules.rb
Instance Attribute Summary collapse
-
#fetch ⇒ Object
readonly
Returns the value of attribute fetch.
-
#guard ⇒ Object
readonly
Returns the value of attribute guard.
-
#handler_allowlist ⇒ Object
readonly
Returns the value of attribute handler_allowlist.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
-
#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/rules.rb', line 49 def initialize(raw) @match = raw["match"] or raise Textus::UsageError.new("rule block missing match:") @fetch = parse_fetch(raw["fetch"]) @handler_allowlist = parse_handler_allowlist(raw["intake_handler_allowlist"]) @guard = parse_guard(raw["guard"]) @retention = parse_retention(raw["retention"]) end |
Instance Attribute Details
#fetch ⇒ Object (readonly)
Returns the value of attribute fetch.
47 48 49 |
# File 'lib/textus/manifest/rules.rb', line 47 def fetch @fetch end |
#guard ⇒ Object (readonly)
Returns the value of attribute guard.
47 48 49 |
# File 'lib/textus/manifest/rules.rb', line 47 def guard @guard end |
#handler_allowlist ⇒ Object (readonly)
Returns the value of attribute handler_allowlist.
47 48 49 |
# File 'lib/textus/manifest/rules.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/rules.rb', line 47 def match @match end |
#retention ⇒ Object (readonly)
Returns the value of attribute retention.
47 48 49 |
# File 'lib/textus/manifest/rules.rb', line 47 def retention @retention end |