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

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

Overview

A description of an iOS device tests may be run on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IosModel

Returns a new instance of IosModel.



1522
1523
1524
# File 'lib/google/apis/testing_v1/classes.rb', line 1522

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>)


1473
1474
1475
# File 'lib/google/apis/testing_v1/classes.rb', line 1473

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)


1478
1479
1480
# File 'lib/google/apis/testing_v1/classes.rb', line 1478

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)


1484
1485
1486
# File 'lib/google/apis/testing_v1/classes.rb', line 1484

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)


1490
1491
1492
# File 'lib/google/apis/testing_v1/classes.rb', line 1490

def name
  @name
end

#per_version_infoArray<Google::Apis::TestingV1::PerIosVersionInfo>

Version-specific information of an iOS model. Corresponds to the JSON property perVersionInfo



1495
1496
1497
# File 'lib/google/apis/testing_v1/classes.rb', line 1495

def per_version_info
  @per_version_info
end

#screen_densityFixnum

Screen density in DPI. Corresponds to the JSON property screenDensity

Returns:

  • (Fixnum)


1500
1501
1502
# File 'lib/google/apis/testing_v1/classes.rb', line 1500

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)


1505
1506
1507
# File 'lib/google/apis/testing_v1/classes.rb', line 1505

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)


1510
1511
1512
# File 'lib/google/apis/testing_v1/classes.rb', line 1510

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>)


1515
1516
1517
# File 'lib/google/apis/testing_v1/classes.rb', line 1515

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>)


1520
1521
1522
# File 'lib/google/apis/testing_v1/classes.rb', line 1520

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
# File 'lib/google/apis/testing_v1/classes.rb', line 1527

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)
  @per_version_info = args[:per_version_info] if args.key?(:per_version_info)
  @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