Class: Google::Apis::AndroidpublisherV3::DeviceMetadata

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

Characteristics of the user's device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceMetadata

Returns a new instance of DeviceMetadata.



2745
2746
2747
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2745

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

Instance Attribute Details

#cpu_makeString

Device CPU make, e.g. "Qualcomm" Corresponds to the JSON property cpuMake

Returns:

  • (String)


2693
2694
2695
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2693

def cpu_make
  @cpu_make
end

#cpu_modelString

Device CPU model, e.g. "MSM8974" Corresponds to the JSON property cpuModel

Returns:

  • (String)


2698
2699
2700
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2698

def cpu_model
  @cpu_model
end

#device_classString

Device class (e.g. tablet) Corresponds to the JSON property deviceClass

Returns:

  • (String)


2703
2704
2705
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2703

def device_class
  @device_class
end

#gl_es_versionFixnum

OpenGL version Corresponds to the JSON property glEsVersion

Returns:

  • (Fixnum)


2708
2709
2710
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2708

def gl_es_version
  @gl_es_version
end

#manufacturerString

Device manufacturer (e.g. Motorola) Corresponds to the JSON property manufacturer

Returns:

  • (String)


2713
2714
2715
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2713

def manufacturer
  @manufacturer
end

#native_platformString

Comma separated list of native platforms (e.g. "arm", "arm7") Corresponds to the JSON property nativePlatform

Returns:

  • (String)


2718
2719
2720
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2718

def native_platform
  @native_platform
end

#product_nameString

Device model name (e.g. Droid) Corresponds to the JSON property productName

Returns:

  • (String)


2723
2724
2725
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2723

def product_name
  @product_name
end

#ram_mbFixnum

Device RAM in Megabytes, e.g. "2048" Corresponds to the JSON property ramMb

Returns:

  • (Fixnum)


2728
2729
2730
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2728

def ram_mb
  @ram_mb
end

#screen_density_dpiFixnum

Screen density in DPI Corresponds to the JSON property screenDensityDpi

Returns:

  • (Fixnum)


2733
2734
2735
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2733

def screen_density_dpi
  @screen_density_dpi
end

#screen_height_pxFixnum

Screen height in pixels Corresponds to the JSON property screenHeightPx

Returns:

  • (Fixnum)


2738
2739
2740
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2738

def screen_height_px
  @screen_height_px
end

#screen_width_pxFixnum

Screen width in pixels Corresponds to the JSON property screenWidthPx

Returns:

  • (Fixnum)


2743
2744
2745
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2743

def screen_width_px
  @screen_width_px
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2750

def update!(**args)
  @cpu_make = args[:cpu_make] if args.key?(:cpu_make)
  @cpu_model = args[:cpu_model] if args.key?(:cpu_model)
  @device_class = args[:device_class] if args.key?(:device_class)
  @gl_es_version = args[:gl_es_version] if args.key?(:gl_es_version)
  @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
  @native_platform = args[:native_platform] if args.key?(:native_platform)
  @product_name = args[:product_name] if args.key?(:product_name)
  @ram_mb = args[:ram_mb] if args.key?(:ram_mb)
  @screen_density_dpi = args[:screen_density_dpi] if args.key?(:screen_density_dpi)
  @screen_height_px = args[:screen_height_px] if args.key?(:screen_height_px)
  @screen_width_px = args[:screen_width_px] if args.key?(:screen_width_px)
end