Class: Fluent::FilterWhere::Parser::IdentifierLiteral
- Defined in:
- lib/fluent/plugin/filter_where/parser/literal.rb
Instance Attribute Summary
Attributes inherited from Literal
Instance Method Summary collapse
- #get(record) ⇒ Object
-
#initialize(text) ⇒ IdentifierLiteral
constructor
A new instance of IdentifierLiteral.
- #name ⇒ Object
Constructor Details
#initialize(text) ⇒ IdentifierLiteral
Returns a new instance of IdentifierLiteral.
44 45 46 |
# File 'lib/fluent/plugin/filter_where/parser/literal.rb', line 44 def initialize(text) @text = text end |
Instance Method Details
#get(record) ⇒ Object
48 49 50 |
# File 'lib/fluent/plugin/filter_where/parser/literal.rb', line 48 def get(record) record[@text] end |
#name ⇒ Object
52 53 54 |
# File 'lib/fluent/plugin/filter_where/parser/literal.rb', line 52 def name @text end |