Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::ApplicationVersionCriterion
- Inherits:
-
Criterion
- Object
- Criterion
- Azure::MobileEngagement::Mgmt::V2014_12_01::Models::ApplicationVersionCriterion
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb
Overview
Used to target devices based on the version of the application they are using.
Instance Attribute Summary collapse
-
#name ⇒ String
The application version.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ApplicationVersionCriterion class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ApplicationVersionCriterion
constructor
A new instance of ApplicationVersionCriterion.
Constructor Details
#initialize ⇒ ApplicationVersionCriterion
Returns a new instance of ApplicationVersionCriterion.
17 18 19 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb', line 17 def initialize @type = "application-version" end |
Instance Attribute Details
#name ⇒ String
Returns The application version.
24 25 26 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb', line 24 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
21 22 23 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb', line 21 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for ApplicationVersionCriterion 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 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb', line 31 def self.mapper() { required: false, serialized_name: 'application-version', type: { name: 'Composite', class_name: 'ApplicationVersionCriterion', model_properties: { type: { required: true, serialized_name: 'type', type: { name: 'String' } }, name: { required: false, serialized_name: 'name', type: { name: 'String' } } } } } end |