Class: Google::Apis::AndroidpublisherV3::DeviceTier
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::DeviceTier
- 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
-
#device_group_names ⇒ Array<String>
Groups of devices included in this tier.
-
#level ⇒ Fixnum
The priority level of the tier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceTier
constructor
A new instance of DeviceTier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceTier
Returns a new instance of DeviceTier.
2010 2011 2012 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2010 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_group_names ⇒ Array<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
1995 1996 1997 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1995 def device_group_names @device_group_names end |
#level ⇒ Fixnum
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
2008 2009 2010 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2008 def level @level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2015 2016 2017 2018 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2015 def update!(**args) @device_group_names = args[:device_group_names] if args.key?(:device_group_names) @level = args[:level] if args.key?(:level) end |