Class: Google::Apis::FirebaserulesV1::TestRulesetResponse

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

The response for FirebaseRulesService.TestRuleset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestRulesetResponse

Returns a new instance of TestRulesetResponse.



699
700
701
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 699

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

Instance Attribute Details

#issuesArray<Google::Apis::FirebaserulesV1::Issue>

Syntactic and semantic Source issues of varying severity. Issues of ERROR severity will prevent tests from executing. Corresponds to the JSON property issues



691
692
693
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 691

def issues
  @issues
end

#test_resultsArray<Google::Apis::FirebaserulesV1::TestResult>

The set of test results given the test cases in the TestSuite. The results will appear in the same order as the test cases appear in the TestSuite. Corresponds to the JSON property testResults



697
698
699
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 697

def test_results
  @test_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



704
705
706
707
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 704

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