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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ExpressionReport

Returns a new instance of ExpressionReport.



96
97
98
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 96

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

Instance Attribute Details

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

Subexpressions Corresponds to the JSON property children



83
84
85
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 83

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



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

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



94
95
96
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 94

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



101
102
103
104
105
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 101

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