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

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

Instance Attribute Summary collapse

Attributes inherited from Literal

#text, #val

Instance Method Summary collapse

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

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