Class: Google::Apis::AndroidpublisherV3::DeviceSpec

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

The device spec used to generate a system APK.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceSpec

Returns a new instance of DeviceSpec.



1314
1315
1316
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1314

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

Instance Attribute Details

#screen_densityFixnum

Screen dpi. Corresponds to the JSON property screenDensity

Returns:

  • (Fixnum)


1301
1302
1303
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1301

def screen_density
  @screen_density
end

#supported_abisArray<String>

Supported ABI architectures in the order of preference. The values should be the string as reported by the platform, e.g. "armeabi-v7a", "x86_64". Corresponds to the JSON property supportedAbis

Returns:

  • (Array<String>)


1307
1308
1309
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1307

def supported_abis
  @supported_abis
end

#supported_localesArray<String>

All installed locales represented as BCP-47 strings, e.g. "en-US". Corresponds to the JSON property supportedLocales

Returns:

  • (Array<String>)


1312
1313
1314
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1312

def supported_locales
  @supported_locales
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1319
1320
1321
1322
1323
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1319

def update!(**args)
  @screen_density = args[:screen_density] if args.key?(:screen_density)
  @supported_abis = args[:supported_abis] if args.key?(:supported_abis)
  @supported_locales = args[:supported_locales] if args.key?(:supported_locales)
end