Class: Google::Apis::TestingV1::Environment

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

The environment in which the test is run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Environment

Returns a new instance of Environment.



1152
1153
1154
# File 'lib/google/apis/testing_v1/classes.rb', line 1152

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

Instance Attribute Details

#android_deviceGoogle::Apis::TestingV1::AndroidDevice

A single Android device. Corresponds to the JSON property androidDevice



1145
1146
1147
# File 'lib/google/apis/testing_v1/classes.rb', line 1145

def android_device
  @android_device
end

#ios_deviceGoogle::Apis::TestingV1::IosDevice

A single iOS device. Corresponds to the JSON property iosDevice



1150
1151
1152
# File 'lib/google/apis/testing_v1/classes.rb', line 1150

def ios_device
  @ios_device
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1157
1158
1159
1160
# File 'lib/google/apis/testing_v1/classes.rb', line 1157

def update!(**args)
  @android_device = args[:android_device] if args.key?(:android_device)
  @ios_device = args[:ios_device] if args.key?(:ios_device)
end