Class: Google::Apis::JobsV3p1beta1::MatchingJob

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

Output only. Job entry with metadata inside SearchJobsResponse.

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) ⇒ MatchingJob

Returns a new instance of MatchingJob



2098
2099
2100
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2098

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

Instance Attribute Details

#commute_infoGoogle::Apis::JobsV3p1beta1::CommuteInfo

Output only. Commute details related to this job. Corresponds to the JSON property commuteInfo



2068
2069
2070
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2068

def commute_info
  @commute_info
end

#jobGoogle::Apis::JobsV3p1beta1::Job

A Job resource represents a job posting (also referred to as a "job listing" or "job requisition"). A job belongs to a Company, which is the hiring entity responsible for the job. Corresponds to the JSON property job



2075
2076
2077
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2075

def job
  @job
end

#job_summaryString

A summary of the job with core information that's displayed on the search results listing page. Corresponds to the JSON property jobSummary

Returns:

  • (String)


2081
2082
2083
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2081

def job_summary
  @job_summary
end

#job_title_snippetString

Contains snippets of text from the Job.job_title field most closely matching a search query's keywords, if available. The matching query keywords are enclosed in HTML bold tags. Corresponds to the JSON property jobTitleSnippet

Returns:

  • (String)


2088
2089
2090
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2088

def job_title_snippet
  @job_title_snippet
end

#search_text_snippetString

Contains snippets of text from the Job.description and similar fields that most closely match a search query's keywords, if available. All HTML tags in the original fields are stripped when returned in this field, and matching query keywords are enclosed in HTML bold tags. Corresponds to the JSON property searchTextSnippet

Returns:

  • (String)


2096
2097
2098
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2096

def search_text_snippet
  @search_text_snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2103
2104
2105
2106
2107
2108
2109
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2103

def update!(**args)
  @commute_info = args[:commute_info] if args.key?(:commute_info)
  @job = args[:job] if args.key?(:job)
  @job_summary = args[:job_summary] if args.key?(:job_summary)
  @job_title_snippet = args[:job_title_snippet] if args.key?(:job_title_snippet)
  @search_text_snippet = args[:search_text_snippet] if args.key?(:search_text_snippet)
end