Class: Google::Apis::JobsV3p1beta1::DeviceInfo
- Inherits:
-
Object
- Object
- Google::Apis::JobsV3p1beta1::DeviceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/jobs_v3p1beta1/classes.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb,
lib/google/apis/jobs_v3p1beta1/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
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.
Constructor Details
#initialize(**args) ⇒ DeviceInfo
Returns a new instance of DeviceInfo.
929 930 931 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 929 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_type ⇒ String
Optional. Type of the device.
Corresponds to the JSON property deviceType
921 922 923 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 921 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
927 928 929 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 927 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
934 935 936 937 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 934 def update!(**args) @device_type = args[:device_type] if args.key?(:device_type) @id = args[:id] if args.key?(:id) end |