Class: Google::Apis::FirebaserulesV1::VisitedExpression

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaserules_v1/classes.rb,
lib/google/apis/firebaserules_v1/representations.rb,
lib/google/apis/firebaserules_v1/representations.rb

Overview

Store the position and access outcome for an expression visited in rules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VisitedExpression

Returns a new instance of VisitedExpression.



804
805
806
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 804

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#source_positionGoogle::Apis::FirebaserulesV1::SourcePosition

Position in the Source content including its line, column number, and an index of the File in the Source message. Used for debug purposes. Corresponds to the JSON property sourcePosition



797
798
799
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 797

def source_position
  @source_position
end

#valueObject

The evaluated value for the visited expression, e.g. true/false Corresponds to the JSON property value

Returns:

  • (Object)


802
803
804
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 802

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



809
810
811
812
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 809

def update!(**args)
  @source_position = args[:source_position] if args.key?(:source_position)
  @value = args[:value] if args.key?(:value)
end