Class: Fluent::FilterWhere::Parser::IdentifierLiteral

Inherits:
Literal
  • Object
show all
Defined in:
lib/fluent/plugin/filter_where/parser/literal.rb

Instance Attribute Summary

Attributes inherited from Literal

#text, #val

Instance Method Summary collapse

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

#nameObject



52
53
54
# File 'lib/fluent/plugin/filter_where/parser/literal.rb', line 52

def name
  @text
end