Class: Google::Apis::JobsV4::DeviceInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceInfo

Returns a new instance of DeviceInfo.



851
852
853
# File 'lib/google/apis/jobs_v4/classes.rb', line 851

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

Instance Attribute Details

#device_typeString

Type of the device. Corresponds to the JSON property deviceType

Returns:

  • (String)


843
844
845
# File 'lib/google/apis/jobs_v4/classes.rb', line 843

def device_type
  @device_type
end

#idString

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)


849
850
851
# File 'lib/google/apis/jobs_v4/classes.rb', line 849

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



856
857
858
859
# File 'lib/google/apis/jobs_v4/classes.rb', line 856

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