Class: Google::Apis::AndroidpublisherV3::DeviceTier

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb

Overview

A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceTier

Returns a new instance of DeviceTier.



1051
1052
1053
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1051

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#device_group_namesArray<String>

Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration. Corresponds to the JSON property deviceGroupNames

Returns:

  • (Array<String>)


1036
1037
1038
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1036

def device_group_names
  @device_group_names
end

#levelFixnum

The priority level of the tier. Tiers are evaluated in descending order of level: the highest level tier has the highest priority. The highest tier matching a given device is selected for that device. You should use a contiguous range of levels for your tiers in a tier set; tier levels in a tier set must be unique. For instance, if your tier set has 4 tiers (including the global fallback), you should define tiers 1, 2 and 3 in this configuration. Note: tier 0 is implicitly defined as a global fallback and selected for devices that don't match any of the tiers explicitly defined here. You mustn't define level 0 explicitly in this configuration. Corresponds to the JSON property level

Returns:

  • (Fixnum)


1049
1050
1051
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1049

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1056
1057
1058
1059
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1056

def update!(**args)
  @device_group_names = args[:device_group_names] if args.key?(:device_group_names)
  @level = args[:level] if args.key?(:level)
end