Class: Google::Apis::FirebaserulesV1::VisitedExpression
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::VisitedExpression
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firebaserules_v1/classes.rb,
generated/google/apis/firebaserules_v1/representations.rb,
generated/google/apis/firebaserules_v1/representations.rb
Overview
Store the position and access outcome for an expression visited in rules.
Instance Attribute Summary collapse
-
#source_position ⇒ Google::Apis::FirebaserulesV1::SourcePosition
Position in the
Source
content including its line, column number, and an index of theFile
in theSource
message. -
#value ⇒ Object
The evaluated value for the visited expression, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VisitedExpression
constructor
A new instance of VisitedExpression.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VisitedExpression
Returns a new instance of VisitedExpression.
848 849 850 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 848 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_position ⇒ Google::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
841 842 843 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 841 def source_position @source_position end |
#value ⇒ Object
The evaluated value for the visited expression, e.g. true/false
Corresponds to the JSON property value
846 847 848 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 846 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
853 854 855 856 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 853 def update!(**args) @source_position = args[:source_position] if args.key?(:source_position) @value = args[:value] if args.key?(:value) end |