Class: Azure::ARM::MobileEngagement::Models::DeviceLocation

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#countrycodeString

Returns The ISO 3166 two-letter country code.

Returns:

  • (String)

    The ISO 3166 two-letter country code.



16
17
18
# File 'lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb', line 16

def countrycode
  @countrycode
end

#localityString

a town or city.

Returns:

  • (String)

    A locality within the administrative region, such as



24
25
26
# File 'lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb', line 24

def locality
  @locality
end

#regionString

state or province.

Returns:

  • (String)

    An administrative region of the nation, such as a



20
21
22
# File 'lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb', line 20

def region
  @region
end

Class Method Details

.mapperObject

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



31
32
33
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
# File 'lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb', line 31

def self.mapper()
  {
    required: false,
    serialized_name: 'DeviceLocation',
    type: {
      name: 'Composite',
      class_name: 'DeviceLocation',
      model_properties: {
        countrycode: {
          required: false,
          serialized_name: 'countrycode',
          type: {
            name: 'String'
          }
        },
        region: {
          required: false,
          serialized_name: 'region',
          type: {
            name: 'String'
          }
        },
        locality: {
          required: false,
          serialized_name: 'locality',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end