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[:analysis_type] || attributes['analysis_type']
  @score = attributes[:score] || attributes['score']
  @indexed_fields = attributes[:indexed_fields] || attributes['indexed_fields']
  @recommendations = attributes[:recommendations] || attributes['recommendations']
  @unindexed_fields = attributes[:unindexed_fields] || attributes['unindexed_fields']
  @unindexed_sort_fields = attributes[:unindexed_sort_fields] || attributes['unindexed_sort_fields']
  @warnings = attributes[:warnings] || attributes['warnings']
  @last_analyzed = attributes[:last_analyzed] || attributes['last_analyzed'] || nil
  @scan_type = attributes[:scan_type] || attributes['scan_type'] || nil
end

Instance Attribute Details

#analysis_typeString

Returns:

  • (String)


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

def analysis_type
  @analysis_type
end

#indexed_fieldsArray<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_analyzedDateTime

Returns:

  • (DateTime)


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

def last_analyzed
  @last_analyzed
end

#recommendationsArray<String>

Returns:

  • (Array<String>)


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

def recommendations
  @recommendations
end

#scan_typeString

Returns:

  • (String)


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

def scan_type
  @scan_type
end

#scoreString

Returns:

  • (String)


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

def score
  @score
end

#unindexed_fieldsArray<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_fieldsArray<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

#warningsArray<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_mappingsObject

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