Class: Google::Apis::AndroidpublisherV3::DeviceGroup

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 group of devices. A group is defined by a set of device selectors. A device belongs to the group if it matches any selector (logical OR).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceGroup

Returns a new instance of DeviceGroup.



1755
1756
1757
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1755

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

Instance Attribute Details

#device_selectorsArray<Google::Apis::AndroidpublisherV3::DeviceSelector>

Device selectors for this group. A device matching any of the selectors is included in this group. Corresponds to the JSON property deviceSelectors



1748
1749
1750
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1748

def device_selectors
  @device_selectors
end

#nameString

The name of the group. Corresponds to the JSON property name

Returns:

  • (String)


1753
1754
1755
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1753

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1760
1761
1762
1763
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1760

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