Class: Foxtail::Bundle::Parser::AST::Message
- Inherits:
-
Data
- Object
- Data
- Foxtail::Bundle::Parser::AST::Message
- Defined in:
- lib/foxtail/bundle/parser/ast.rb,
lib/foxtail/bundle/parser/ast.rb
Overview
Message entry in fluent-bundle compatible format
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
- Hash, nil
-
Message attributes.
-
#id ⇒ Object
readonly
- String
-
The message identifier.
-
#value ⇒ Object
readonly
The message pattern (String or Array).
Instance Method Summary collapse
-
#initialize(id:, value: nil, attributes: nil) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(id:, value: nil, attributes: nil) ⇒ Message
Returns a new instance of Message.
110 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 110 def initialize(id:, value: nil, attributes: nil) = super(id: id.to_s, value:, attributes:) |
Instance Attribute Details
#attributes ⇒ Object (readonly)
- Hash, nil
-
Message attributes
106 107 108 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 106 def attributes @attributes end |
#id ⇒ Object (readonly)
- String
-
The message identifier
106 107 108 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 106 def id @id end |
#value ⇒ Object (readonly)
The message pattern (String or Array)
106 107 108 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 106 def value @value end |