Class: Google::Apis::JobsV2::DeviceInfo

Inherits:
Object
  • Object
show all
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 searcher, 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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeviceInfo

Returns a new instance of DeviceInfo



1027
1028
1029
# File 'generated/google/apis/jobs_v2/classes.rb', line 1027

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

Instance Attribute Details

#device_typeString

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

Returns:

  • (String)


1018
1019
1020
# File 'generated/google/apis/jobs_v2/classes.rb', line 1018

def device_type
  @device_type
end

#idString

Optional. A device-specific ID. It must be a unique identifier, which distinguishes the device from other devices. Corresponds to the JSON property id

Returns:

  • (String)


1025
1026
1027
# File 'generated/google/apis/jobs_v2/classes.rb', line 1025

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1032
1033
1034
1035
# File 'generated/google/apis/jobs_v2/classes.rb', line 1032

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