Class: GetStream::Generated::Models::PerformanceAnalysisResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/performance_analysis_response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ PerformanceAnalysisResponse

Initialize with attributes



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 41

def initialize(attributes = {})
  super(attributes)
  @analysis_type = attributes.fetch(:analysis_type) { attributes.fetch('analysis_type', nil) }
  @score = attributes.fetch(:score) { attributes.fetch('score', nil) }
  @indexed_fields = attributes.fetch(:indexed_fields) { attributes.fetch('indexed_fields', nil) }
  @recommendations = attributes.fetch(:recommendations) { attributes.fetch('recommendations', nil) }
  @unindexed_fields = attributes.fetch(:unindexed_fields) { attributes.fetch('unindexed_fields', nil) }
  @unindexed_sort_fields = attributes.fetch(:unindexed_sort_fields) { attributes.fetch('unindexed_sort_fields', nil) }
  @warnings = attributes.fetch(:warnings) { attributes.fetch('warnings', nil) }
  @last_analyzed = attributes.fetch(:last_analyzed) { attributes.fetch('last_analyzed', nil) }
  @scan_type = attributes.fetch(:scan_type) { attributes.fetch('scan_type', nil) }
end

Instance Attribute Details

#analysis_type ⇒ String

Returns:

  • (String)


14
15
16
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 14

def analysis_type
  @analysis_type
end

#indexed_fields ⇒ Array<String>

Returns:

  • (Array<String>)


20
21
22
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 20

def indexed_fields
  @indexed_fields
end

#last_analyzed ⇒ DateTime

Returns:

  • (DateTime)


35
36
37
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 35

def last_analyzed
  @last_analyzed
end

#recommendations ⇒ Array<String>

Returns:

  • (Array<String>)


23
24
25
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 23

def recommendations
  @recommendations
end

#scan_type ⇒ String

Returns:

  • (String)


38
39
40
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 38

def scan_type
  @scan_type
end

#score ⇒ String

Returns:

  • (String)


17
18
19
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 17

def score
  @score
end

#unindexed_fields ⇒ Array<String>

Returns:

  • (Array<String>)


26
27
28
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 26

def unindexed_fields
  @unindexed_fields
end

#unindexed_sort_fields ⇒ Array<String>

Returns:

  • (Array<String>)


29
30
31
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 29

def unindexed_sort_fields
  @unindexed_sort_fields
end

#warnings ⇒ Array<String>

Returns:

  • (Array<String>)


32
33
34
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 32

def warnings
  @warnings
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/getstream_ruby/generated/models/performance_analysis_response.rb', line 55

def self.json_field_mappings
  {
    analysis_type: 'analysis_type',
    score: 'score',
    indexed_fields: 'indexed_fields',
    recommendations: 'recommendations',
    unindexed_fields: 'unindexed_fields',
    unindexed_sort_fields: 'unindexed_sort_fields',
    warnings: 'warnings',
    last_analyzed: 'last_analyzed',
    scan_type: 'scan_type'
  }
end