Class: Google::Apis::FirebaserulesV1::ExpressionReport

Inherits:
Object
  • Object
show all
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

Describes where in a file an expression is found and what it was evaluated to over the course of its use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExpressionReport

Returns a new instance of ExpressionReport.



92
93
94
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 92

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

Instance Attribute Details

#childrenArray<Google::Apis::FirebaserulesV1::ExpressionReport>

Subexpressions Corresponds to the JSON property children



79
80
81
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 79

def children
  @children
end

#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



85
86
87
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 85

def source_position
  @source_position
end

#valuesArray<Google::Apis::FirebaserulesV1::ValueCount>

Values that this expression evaluated to when encountered. Corresponds to the JSON property values



90
91
92
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 90

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



97
98
99
100
101
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 97

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