Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateTagCriterion
- Inherits:
-
Criterion
- Object
- Criterion
- Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateTagCriterion
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb
Overview
Target devices based on a date tag value.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the custom tag.
-
#op ⇒ AudienceOperators
(less than), ‘GT` (greater than), `LE` (less than or equal to) or `GE` (greater than or equal to).
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Date
format (e.g. 1969-12-07 stands for 7 Dec 1969).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DateTagCriterion class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ DateTagCriterion
constructor
A new instance of DateTagCriterion.
Constructor Details
#initialize ⇒ DateTagCriterion
Returns a new instance of DateTagCriterion.
16 17 18 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb', line 16 def initialize @type = "date-tag" end |
Instance Attribute Details
#name ⇒ String
Returns The name of the custom tag.
23 24 25 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb', line 23 def name @name end |
#op ⇒ AudienceOperators
(less than), ‘GT` (greater than), `LE` (less than or equal to) or `GE` (greater than or equal to). Possible values include: ’EQ’, ‘LT’, ‘GT’, ‘LE’, ‘GE’
35 36 37 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb', line 35 def op @op end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb', line 20 def type @type end |
#value ⇒ Date
format (e.g. 1969-12-07 stands for 7 Dec 1969). * an offset in days relative to the current day (‘TODAY` + `value`).
29 30 31 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb', line 29 def value @value end |
Class Method Details
.mapper ⇒ Object
Mapper for DateTagCriterion class as Ruby Hash. This will be used for serialization/deserialization.
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb', line 42 def self.mapper() { required: false, serialized_name: 'date-tag', type: { name: 'Composite', class_name: 'DateTagCriterion', model_properties: { type: { required: true, serialized_name: 'type', type: { name: 'String' } }, name: { required: false, serialized_name: 'name', type: { name: 'String' } }, value: { required: false, serialized_name: 'value', type: { name: 'Date' } }, op: { required: false, serialized_name: 'op', type: { name: 'String' } } } } } end |