class Azure::MobileEngagement::Mgmt::V2014_12_01::Models::LocationCriterion

Used to target devices based on their last know area.

Attributes

country[RW]

@return [String] Two character country code where the user is located (ISO 3166-1).

locality[RW]

@return [String] A locality within the administrative region, such as a town or city.

region[RW]

@return [String] An administrative region of the country, such as a state or province.

type[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb, line 39
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'location',
    type: {
      name: 'Composite',
      class_name: 'LocationCriterion',
      model_properties: {
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        country: {
          client_side_validation: true,
          required: false,
          serialized_name: 'country',
          type: {
            name: 'String'
          }
        },
        region: {
          client_side_validation: true,
          required: false,
          serialized_name: 'region',
          type: {
            name: 'String'
          }
        },
        locality: {
          client_side_validation: true,
          required: false,
          serialized_name: 'locality',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb, line 16
def initialize
  @type = "location"
end