Class: Google::Apis::AndroidpublisherV3::DeviceMetadata
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::DeviceMetadata
- 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
-
#cpu_make ⇒ String
Device CPU make, e.g.
-
#cpu_model ⇒ String
Device CPU model, e.g.
-
#device_class ⇒ String
Device class (e.g. tablet) Corresponds to the JSON property
deviceClass. -
#gl_es_version ⇒ Fixnum
OpenGL version Corresponds to the JSON property
glEsVersion. -
#manufacturer ⇒ String
Device manufacturer (e.g. Motorola) Corresponds to the JSON property
manufacturer. -
#native_platform ⇒ String
Comma separated list of native platforms (e.g. "arm", "arm7") Corresponds to the JSON property
nativePlatform. -
#product_name ⇒ String
Device model name (e.g. Droid) Corresponds to the JSON property
productName. -
#ram_mb ⇒ Fixnum
Device RAM in Megabytes, e.g.
-
#screen_density_dpi ⇒ Fixnum
Screen density in DPI Corresponds to the JSON property
screenDensityDpi. -
#screen_height_px ⇒ Fixnum
Screen height in pixels Corresponds to the JSON property
screenHeightPx. -
#screen_width_px ⇒ Fixnum
Screen width in pixels Corresponds to the JSON property
screenWidthPx.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceMetadata
constructor
A new instance of DeviceMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceMetadata
Returns a new instance of DeviceMetadata.
1198 1199 1200 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1198 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_make ⇒ String
Device CPU make, e.g. "Qualcomm"
Corresponds to the JSON property cpuMake
1146 1147 1148 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1146 def cpu_make @cpu_make end |
#cpu_model ⇒ String
Device CPU model, e.g. "MSM8974"
Corresponds to the JSON property cpuModel
1151 1152 1153 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1151 def cpu_model @cpu_model end |
#device_class ⇒ String
Device class (e.g. tablet)
Corresponds to the JSON property deviceClass
1156 1157 1158 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1156 def device_class @device_class end |
#gl_es_version ⇒ Fixnum
OpenGL version
Corresponds to the JSON property glEsVersion
1161 1162 1163 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1161 def gl_es_version @gl_es_version end |
#manufacturer ⇒ String
Device manufacturer (e.g. Motorola)
Corresponds to the JSON property manufacturer
1166 1167 1168 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1166 def manufacturer @manufacturer end |
#native_platform ⇒ String
Comma separated list of native platforms (e.g. "arm", "arm7")
Corresponds to the JSON property nativePlatform
1171 1172 1173 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1171 def native_platform @native_platform end |
#product_name ⇒ String
Device model name (e.g. Droid)
Corresponds to the JSON property productName
1176 1177 1178 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1176 def product_name @product_name end |
#ram_mb ⇒ Fixnum
Device RAM in Megabytes, e.g. "2048"
Corresponds to the JSON property ramMb
1181 1182 1183 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1181 def ram_mb @ram_mb end |
#screen_density_dpi ⇒ Fixnum
Screen density in DPI
Corresponds to the JSON property screenDensityDpi
1186 1187 1188 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1186 def screen_density_dpi @screen_density_dpi end |
#screen_height_px ⇒ Fixnum
Screen height in pixels
Corresponds to the JSON property screenHeightPx
1191 1192 1193 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1191 def screen_height_px @screen_height_px end |
#screen_width_px ⇒ Fixnum
Screen width in pixels
Corresponds to the JSON property screenWidthPx
1196 1197 1198 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1196 def screen_width_px @screen_width_px end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1203 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 |