Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::LocationCriterion
- Inherits:
-
Criterion
- Object
- Criterion
- Azure::MobileEngagement::Mgmt::V2014_12_01::Models::LocationCriterion
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb
Overview
Used to target devices based on their last know area.
Instance Attribute Summary collapse
-
#country ⇒ String
(ISO 3166-1).
-
#locality ⇒ String
town or city.
-
#region ⇒ String
state or province.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LocationCriterion class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ LocationCriterion
constructor
A new instance of LocationCriterion.
Constructor Details
#initialize ⇒ LocationCriterion
Returns a new instance of LocationCriterion.
16 17 18 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 16 def initialize @type = "location" end |
Instance Attribute Details
#country ⇒ String
(ISO 3166-1).
24 25 26 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 24 def country @country end |
#locality ⇒ String
town or city.
32 33 34 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 32 def locality @locality end |
#region ⇒ String
state or province.
28 29 30 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 28 def region @region end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 20 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for LocationCriterion class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb', line 39 def self.mapper() { required: false, serialized_name: 'location', type: { name: 'Composite', class_name: 'LocationCriterion', model_properties: { type: { required: true, serialized_name: 'type', type: { name: 'String' } }, country: { required: false, serialized_name: 'country', type: { name: 'String' } }, region: { required: false, serialized_name: 'region', type: { name: 'String' } }, locality: { required: false, serialized_name: 'locality', type: { name: 'String' } } } } } end |