Class: Google::Apis::JobsV2::DeviceInfo
- Inherits:
-
Object
- Object
- Google::Apis::JobsV2::DeviceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v2/classes.rb,
generated/google/apis/jobs_v2/representations.rb,
generated/google/apis/jobs_v2/representations.rb
Overview
Input only. Device information collected from the job seeker, candidate, or other entity conducting the job search. Providing this information improves the quality of the search results across devices.
Instance Attribute Summary collapse
-
#device_type ⇒ String
Optional.
-
#id ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceInfo
constructor
A new instance of DeviceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeviceInfo
Returns a new instance of DeviceInfo
1043 1044 1045 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 1043 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_type ⇒ String
Optional.
Type of the device.
Corresponds to the JSON property deviceType
1034 1035 1036 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 1034 def device_type @device_type end |
#id ⇒ String
Optional.
A device-specific ID. The ID must be a unique identifier that distinguishes
the device from other devices.
Corresponds to the JSON property id
1041 1042 1043 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 1041 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1048 1049 1050 1051 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 1048 def update!(**args) @device_type = args[:device_type] if args.key?(:device_type) @id = args[:id] if args.key?(:id) end |