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

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

The environment in which the test is run.

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

Returns a new instance of Environment



912
913
914
# File 'generated/google/apis/testing_v1/classes.rb', line 912

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

Instance Attribute Details

#android_deviceGoogle::Apis::TestingV1::AndroidDevice

A single Android device. Corresponds to the JSON property androidDevice



905
906
907
# File 'generated/google/apis/testing_v1/classes.rb', line 905

def android_device
  @android_device
end

#ios_deviceGoogle::Apis::TestingV1::IosDevice

A single iOS device. Corresponds to the JSON property iosDevice



910
911
912
# File 'generated/google/apis/testing_v1/classes.rb', line 910

def ios_device
  @ios_device
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



917
918
919
920
# File 'generated/google/apis/testing_v1/classes.rb', line 917

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