Class: Textus::Manifest::Rules::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/textus/manifest/rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fetchObject (readonly)

Returns the value of attribute fetch.



47
48
49
# File 'lib/textus/manifest/rules.rb', line 47

def fetch
  @fetch
end

#guardObject (readonly)

Returns the value of attribute guard.



47
48
49
# File 'lib/textus/manifest/rules.rb', line 47

def guard
  @guard
end

#handler_allowlistObject (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

#matchObject (readonly)

Returns the value of attribute match.



47
48
49
# File 'lib/textus/manifest/rules.rb', line 47

def match
  @match
end

#retentionObject (readonly)

Returns the value of attribute retention.



47
48
49
# File 'lib/textus/manifest/rules.rb', line 47

def retention
  @retention
end