Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateTagCriterion

Inherits:
Criterion
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDateTagCriterion

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

#nameString

Returns The name of the custom tag.

Returns:

  • (String)

    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

#opAudienceOperators

(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’

Returns:



35
36
37
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb', line 35

def op
  @op
end

#typeObject

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

#valueDate

format (e.g. 1969-12-07 stands for 7 Dec 1969). * an offset in days relative to the current day (‘TODAY` + `value`).

Returns:

  • (Date)

    It can be either: * an absolute date using yyyy-MM-dd



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

.mapperObject

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