Class: Google::Apis::TestingV1::IosModel
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::IosModel
- 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
-
#device_capabilities ⇒ Array<String>
Device capabilities.
-
#form_factor ⇒ String
Whether this device is a phone, tablet, wearable, etc.
-
#id ⇒ String
The unique opaque id for this model.
-
#name ⇒ String
The human-readable name for this device model.
-
#per_version_info ⇒ Array<Google::Apis::TestingV1::PerIosVersionInfo>
Version-specific information of an iOS model.
-
#screen_density ⇒ Fixnum
Screen density in DPI.
-
#screen_x ⇒ Fixnum
Screen size in the horizontal (X) dimension measured in pixels.
-
#screen_y ⇒ Fixnum
Screen size in the vertical (Y) dimension measured in pixels.
-
#supported_version_ids ⇒ Array<String>
The set of iOS major software versions this device supports.
-
#tags ⇒ Array<String>
Tags for this dimension.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IosModel
constructor
A new instance of IosModel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IosModel
Returns a new instance of IosModel.
1520 1521 1522 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_capabilities ⇒ Array<String>
Device capabilities. Copied from https://developer.apple.com/library/archive/
documentation/DeviceInformation/Reference/iOSDeviceCompatibility/
DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html
Corresponds to the JSON property deviceCapabilities
1471 1472 1473 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1471 def device_capabilities @device_capabilities end |
#form_factor ⇒ String
Whether this device is a phone, tablet, wearable, etc.
Corresponds to the JSON property formFactor
1476 1477 1478 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1476 def form_factor @form_factor end |
#id ⇒ String
The unique opaque id for this model. Use this for invoking the
TestExecutionService.
Corresponds to the JSON property id
1482 1483 1484 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1482 def id @id end |
#name ⇒ String
The human-readable name for this device model. Examples: "iPhone 4s", "iPad
Mini 2".
Corresponds to the JSON property name
1488 1489 1490 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1488 def name @name end |
#per_version_info ⇒ Array<Google::Apis::TestingV1::PerIosVersionInfo>
Version-specific information of an iOS model.
Corresponds to the JSON property perVersionInfo
1493 1494 1495 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1493 def per_version_info @per_version_info end |
#screen_density ⇒ Fixnum
Screen density in DPI.
Corresponds to the JSON property screenDensity
1498 1499 1500 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1498 def screen_density @screen_density end |
#screen_x ⇒ Fixnum
Screen size in the horizontal (X) dimension measured in pixels.
Corresponds to the JSON property screenX
1503 1504 1505 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1503 def screen_x @screen_x end |
#screen_y ⇒ Fixnum
Screen size in the vertical (Y) dimension measured in pixels.
Corresponds to the JSON property screenY
1508 1509 1510 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1508 def screen_y @screen_y end |
#supported_version_ids ⇒ Array<String>
The set of iOS major software versions this device supports.
Corresponds to the JSON property supportedVersionIds
1513 1514 1515 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1513 def supported_version_ids @supported_version_ids end |
#tags ⇒ Array<String>
Tags for this dimension. Examples: "default", "preview", "deprecated".
Corresponds to the JSON property tags
1518 1519 1520 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1518 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1525 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 |