Class: Cerbos::Output::PlanResources::Expression::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/cerbos/output/plan_resources.rb

Overview

An abstract syntax tree node representing a variable whose value was unknown when producing the query plan.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString (readonly)

The name of the variable.

Returns:

  • (String)


120
121
122
123
124
125
126
127
128
129
# File 'lib/cerbos/output/plan_resources.rb', line 120

PlanResources::Expression::Variable = Output.new_class(:name) do
  # @!attribute [r] name
  #   The name of the variable.
  #
  #   @return [String]

  def self.from_protobuf(variable)
    new(name: variable)
  end
end