Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::SegmentCriterion
- Inherits:
-
Criterion
- Object
- Criterion
- Azure::MobileEngagement::Mgmt::V2014_12_01::Models::SegmentCriterion
- 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
-
#exclude ⇒ Boolean
that are NOT part of the segment.
-
#id ⇒ Integer
Segment identifier.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SegmentCriterion class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ SegmentCriterion
constructor
A new instance of SegmentCriterion.
Constructor Details
#initialize ⇒ SegmentCriterion
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
#exclude ⇒ Boolean
that are NOT part of the segment.
27 28 29 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb', line 27 def exclude @exclude end |
#id ⇒ Integer
Returns 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 |
#type ⇒ Object
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
.mapper ⇒ Object
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 |