Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::Device
- Inherits:
-
Object
- Object
- Azure::MobileEngagement::Mgmt::V2014_12_01::Models::Device
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#app_info ⇒ Hash{String => String}
a JSON object.
-
#device_id ⇒ String
The device result.
-
#info ⇒ DeviceInfo
system, network and application identification).
-
#location ⇒ DeviceLocation
Last geo-location data received.
-
#meta ⇒ DeviceMeta
Application usage data.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Device class as Ruby Hash.
Instance Attribute Details
#app_info ⇒ Hash{String => String}
a JSON object.
31 32 33 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device.rb', line 31 def app_info @app_info end |
#device_id ⇒ String
Returns The device result.
17 18 19 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device.rb', line 17 def device_id @device_id end |
#info ⇒ DeviceInfo
system, network and application identification).
24 25 26 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device.rb', line 24 def info @info end |
#location ⇒ DeviceLocation
Returns Last geo-location data received.
27 28 29 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device.rb', line 27 def location @location end |
#meta ⇒ DeviceMeta
Returns Application usage data.
20 21 22 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device.rb', line 20 def @meta end |
Class Method Details
.mapper ⇒ Object
Mapper for Device class as Ruby Hash. This will be used for serialization/deserialization.
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device.rb', line 38 def self.mapper() { required: false, serialized_name: 'Device', type: { name: 'Composite', class_name: 'Device', model_properties: { device_id: { required: true, serialized_name: 'deviceId', type: { name: 'String' } }, meta: { required: false, serialized_name: 'meta', type: { name: 'Composite', class_name: 'DeviceMeta' } }, info: { required: false, serialized_name: 'info', type: { name: 'Composite', class_name: 'DeviceInfo' } }, location: { required: false, serialized_name: 'location', type: { name: 'Composite', class_name: 'DeviceLocation' } }, app_info: { required: false, serialized_name: 'appInfo', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |