Class: Google::Apis::TestingV1::IosModel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/testing_v1/classes.rb,
generated/google/apis/testing_v1/representations.rb,
generated/google/apis/testing_v1/representations.rb

Overview

A description of an iOS device tests may be run on. Next tag: 11

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IosModel

Returns a new instance of IosModel.



1262
1263
1264
# File 'generated/google/apis/testing_v1/classes.rb', line 1262

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

Instance Attribute Details

#device_capabilitiesArray<String>

Device capabilities. Copied from https://developer.apple.com/library/archive/documentation/DeviceInformation/ Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/ DeviceCompatibilityMatrix.html Corresponds to the JSON property deviceCapabilities

Returns:

  • (Array<String>)


1217
1218
1219
# File 'generated/google/apis/testing_v1/classes.rb', line 1217

def device_capabilities
  @device_capabilities
end

#form_factorString

Whether this device is a phone, tablet, wearable, etc. Corresponds to the JSON property formFactor

Returns:

  • (String)


1222
1223
1224
# File 'generated/google/apis/testing_v1/classes.rb', line 1222

def form_factor
  @form_factor
end

#idString

The unique opaque id for this model. Use this for invoking the TestExecutionService. Corresponds to the JSON property id

Returns:

  • (String)


1228
1229
1230
# File 'generated/google/apis/testing_v1/classes.rb', line 1228

def id
  @id
end

#nameString

The human-readable name for this device model. Examples: "iPhone 4s", "iPad Mini 2". Corresponds to the JSON property name

Returns:

  • (String)


1234
1235
1236
# File 'generated/google/apis/testing_v1/classes.rb', line 1234

def name
  @name
end

#screen_densityFixnum

Screen density in DPI. Corresponds to the JSON property screenDensity

Returns:

  • (Fixnum)


1239
1240
1241
# File 'generated/google/apis/testing_v1/classes.rb', line 1239

def screen_density
  @screen_density
end

#screen_xFixnum

Screen size in the horizontal (X) dimension measured in pixels. Corresponds to the JSON property screenX

Returns:

  • (Fixnum)


1244
1245
1246
# File 'generated/google/apis/testing_v1/classes.rb', line 1244

def screen_x
  @screen_x
end

#screen_yFixnum

Screen size in the vertical (Y) dimension measured in pixels. Corresponds to the JSON property screenY

Returns:

  • (Fixnum)


1249
1250
1251
# File 'generated/google/apis/testing_v1/classes.rb', line 1249

def screen_y
  @screen_y
end

#supported_version_idsArray<String>

The set of iOS major software versions this device supports. Corresponds to the JSON property supportedVersionIds

Returns:

  • (Array<String>)


1254
1255
1256
# File 'generated/google/apis/testing_v1/classes.rb', line 1254

def supported_version_ids
  @supported_version_ids
end

#tagsArray<String>

Tags for this dimension. Examples: "default", "preview", "deprecated". Corresponds to the JSON property tags

Returns:

  • (Array<String>)


1260
1261
1262
# File 'generated/google/apis/testing_v1/classes.rb', line 1260

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
# File 'generated/google/apis/testing_v1/classes.rb', line 1267

def update!(**args)
  @device_capabilities = args[:device_capabilities] if args.key?(:device_capabilities)
  @form_factor = args[:form_factor] if args.key?(:form_factor)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @screen_density = args[:screen_density] if args.key?(:screen_density)
  @screen_x = args[:screen_x] if args.key?(:screen_x)
  @screen_y = args[:screen_y] if args.key?(:screen_y)
  @supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids)
  @tags = args[:tags] if args.key?(:tags)
end