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