Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DeviceManufacturerCriterion

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

Overview

Used to target devices based on the device manufacturer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDeviceManufacturerCriterion

Returns a new instance of DeviceManufacturerCriterion.



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

def initialize
  @type = "device-manufacturer"
end

Instance Attribute Details

#nameString

Returns The device manufacturer.

Returns:

  • (String)

    The device manufacturer.



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

def name
  @name
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    required: false,
    serialized_name: 'device-manufacturer',
    type: {
      name: 'Composite',
      class_name: 'DeviceManufacturerCriterion',
      model_properties: {
        type: {
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end