Class: Google::Apis::JobsV4::DeviceInfo
- Inherits:
-
Object
- Object
- Google::Apis::JobsV4::DeviceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v4/classes.rb,
generated/google/apis/jobs_v4/representations.rb,
generated/google/apis/jobs_v4/representations.rb
Overview
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
Type of the device.
-
#id ⇒ String
A device-specific ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceInfo
constructor
A new instance of DeviceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceInfo
Returns a new instance of DeviceInfo.
850 851 852 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 850 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_type ⇒ String
Type of the device.
Corresponds to the JSON property deviceType
842 843 844 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 842 def device_type @device_type end |
#id ⇒ String
A device-specific ID. The ID must be a unique identifier that distinguishes
the device from other devices.
Corresponds to the JSON property id
848 849 850 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 848 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
855 856 857 858 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 855 def update!(**args) @device_type = args[:device_type] if args.key?(:device_type) @id = args[:id] if args.key?(:id) end |