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

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

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.



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

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

Instance Attribute Details

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

Subexpressions Corresponds to the JSON property children



77
78
79
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 77

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



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

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



88
89
90
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 88

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



95
96
97
98
99
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 95

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