Class: Google::Apis::JobsV3p1beta1::DeviceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/jobs_v3p1beta1/classes.rb,
generated/google/apis/jobs_v3p1beta1/representations.rb,
generated/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceInfo

Returns a new instance of DeviceInfo.



928
929
930
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 928

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

Instance Attribute Details

#device_typeString

Optional. Type of the device. Corresponds to the JSON property deviceType

Returns:

  • (String)


920
921
922
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 920

def device_type
  @device_type
end

#idString

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

Returns:

  • (String)


926
927
928
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 926

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



933
934
935
936
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 933

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