Class: Google::Apis::JobsV4::JobDerivedInfo

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

Derived details about the job posting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobDerivedInfo

Returns a new instance of JobDerivedInfo.



1236
1237
1238
# File 'lib/google/apis/jobs_v4/classes.rb', line 1236

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

Instance Attribute Details

#job_categoriesArray<String>

Job categories derived from Job.title and Job.description. Corresponds to the JSON property jobCategories

Returns:

  • (Array<String>)


1228
1229
1230
# File 'lib/google/apis/jobs_v4/classes.rb', line 1228

def job_categories
  @job_categories
end

#locationsArray<Google::Apis::JobsV4::Location>

Structured locations of the job, resolved from Job.addresses. locations are exactly matched to Job.addresses in the same order. Corresponds to the JSON property locations

Returns:



1234
1235
1236
# File 'lib/google/apis/jobs_v4/classes.rb', line 1234

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1241
1242
1243
1244
# File 'lib/google/apis/jobs_v4/classes.rb', line 1241

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