Class: Google::Apis::TestingV1::IosDevice

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 single iOS device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IosDevice

Returns a new instance of IosDevice.



1192
1193
1194
# File 'lib/google/apis/testing_v1/classes.rb', line 1192

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

Instance Attribute Details

#ios_model_idString

Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property iosModelId

Returns:

  • (String)


1172
1173
1174
# File 'lib/google/apis/testing_v1/classes.rb', line 1172

def ios_model_id
  @ios_model_id
end

#ios_version_idString

Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property iosVersionId

Returns:

  • (String)


1178
1179
1180
# File 'lib/google/apis/testing_v1/classes.rb', line 1178

def ios_version_id
  @ios_version_id
end

#localeString

Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property locale

Returns:

  • (String)


1184
1185
1186
# File 'lib/google/apis/testing_v1/classes.rb', line 1184

def locale
  @locale
end

#orientationString

Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options. Corresponds to the JSON property orientation

Returns:

  • (String)


1190
1191
1192
# File 'lib/google/apis/testing_v1/classes.rb', line 1190

def orientation
  @orientation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1197
1198
1199
1200
1201
1202
# File 'lib/google/apis/testing_v1/classes.rb', line 1197

def update!(**args)
  @ios_model_id = args[:ios_model_id] if args.key?(:ios_model_id)
  @ios_version_id = args[:ios_version_id] if args.key?(:ios_version_id)
  @locale = args[:locale] if args.key?(:locale)
  @orientation = args[:orientation] if args.key?(:orientation)
end