Class: Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionGradesItem

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-04-26/generated/azure_mgmt_customer_insights/models/prediction_grades_item.rb

Overview

The definition of a prediction grade.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#grade_nameString

Returns Name of the grade.

Returns:

  • (String)

    Name of the grade.



16
17
18
# File 'lib/2017-04-26/generated/azure_mgmt_customer_insights/models/prediction_grades_item.rb', line 16

def grade_name
  @grade_name
end

#max_score_thresholdInteger

Returns Maximum score threshold.

Returns:

  • (Integer)

    Maximum score threshold.



22
23
24
# File 'lib/2017-04-26/generated/azure_mgmt_customer_insights/models/prediction_grades_item.rb', line 22

def max_score_threshold
  @max_score_threshold
end

#min_score_thresholdInteger

Returns Minimum score threshold.

Returns:

  • (Integer)

    Minimum score threshold.



19
20
21
# File 'lib/2017-04-26/generated/azure_mgmt_customer_insights/models/prediction_grades_item.rb', line 19

def min_score_threshold
  @min_score_threshold
end

Class Method Details

.mapperObject

Mapper for PredictionGradesItem class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/2017-04-26/generated/azure_mgmt_customer_insights/models/prediction_grades_item.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Prediction_gradesItem',
    type: {
      name: 'Composite',
      class_name: 'PredictionGradesItem',
      model_properties: {
        grade_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'gradeName',
          type: {
            name: 'String'
          }
        },
        min_score_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'minScoreThreshold',
          type: {
            name: 'Number'
          }
        },
        max_score_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxScoreThreshold',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end