Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::LocationCriterion

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

Overview

Used to target devices based on their last know area.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLocationCriterion

Returns a new instance of LocationCriterion.



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

def initialize
  @type = "location"
end

Instance Attribute Details

#countryString

(ISO 3166-1).

Returns:

  • (String)

    Two character country code where the user is located



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

def country
  @country
end

#localityString

town or city.

Returns:

  • (String)

    A locality within the administrative region, such as a



32
33
34
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 32

def locality
  @locality
end

#regionString

state or province.

Returns:

  • (String)

    An administrative region of the country, such as a



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

def region
  @region
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

.mapperObject

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



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
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 39

def self.mapper()
  {
    required: false,
    serialized_name: 'location',
    type: {
      name: 'Composite',
      class_name: 'LocationCriterion',
      model_properties: {
        type: {
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        country: {
          required: false,
          serialized_name: 'country',
          type: {
            name: 'String'
          }
        },
        region: {
          required: false,
          serialized_name: 'region',
          type: {
            name: 'String'
          }
        },
        locality: {
          required: false,
          serialized_name: 'locality',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end