Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::SegmentCriterion

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

Overview

Target devices based on an existing segment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSegmentCriterion

Returns a new instance of SegmentCriterion.



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

def initialize
  @type = "segment"
end

Instance Attribute Details

#excludeBoolean

that are NOT part of the segment.

Returns:

  • (Boolean)

    If value is true, the criterion will target users



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

def exclude
  @exclude
end

#idInteger

Returns Segment identifier.

Returns:

  • (Integer)

    Segment identifier.



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

def id
  @id
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

.mapperObject

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



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
66
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb', line 34

def self.mapper()
  {
    required: false,
    serialized_name: 'segment',
    type: {
      name: 'Composite',
      class_name: 'SegmentCriterion',
      model_properties: {
        type: {
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        id: {
          required: false,
          serialized_name: 'id',
          type: {
            name: 'Number'
          }
        },
        exclude: {
          required: false,
          serialized_name: 'exclude',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end