Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::PollAnswerFeedbackCriterion

Inherits:
Criterion
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb

Overview

Used to target devices who answered X to a given question.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePollAnswerFeedbackCriterion

Returns a new instance of PollAnswerFeedbackCriterion.



16
17
18
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb', line 16

def initialize
  @type = "poll-answer-feedback"
end

Instance Attribute Details

#choice_idInteger

Returns The unique identifier of the choice.

Returns:

  • (Integer)

    The unique identifier of the choice.



26
27
28
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb', line 26

def choice_id
  @choice_id
end

#content_idInteger

Returns The unique identifier of the poll.

Returns:

  • (Integer)

    The unique identifier of the poll.



23
24
25
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb', line 23

def content_id
  @content_id
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb', line 20

def type
  @type
end

Class Method Details

.mapperObject

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



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/2014-12-01/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb', line 33

def self.mapper()
  {
    required: false,
    serialized_name: 'poll-answer-feedback',
    type: {
      name: 'Composite',
      class_name: 'PollAnswerFeedbackCriterion',
      model_properties: {
        type: {
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        content_id: {
          required: false,
          serialized_name: 'content-id',
          type: {
            name: 'Number'
          }
        },
        choice_id: {
          required: false,
          serialized_name: 'choice-id',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end