Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DeviceLocation

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2014-12-01/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.



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

def countrycode
  @countrycode
end

#localityString

town or city.

Returns:

  • (String)

    A locality within the administrative region, such as a



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

def locality
  @locality
end

#regionString

state or province.

Returns:

  • (String)

    An administrative region of the nation, such as a



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

def region
  @region
end

Class Method Details

.mapperObject

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



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
64
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device_location.rb', line 32

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