Class: BrightData::LinkedIn::Types::Job

Inherits:
Data
  • Object
show all
Defined in:
lib/brightdata/linkedin/types/job.rb

Overview

Note:

Use #raw to access fields not yet typed by this gem.

Typed representation of a LinkedIn job response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#company_logoObject (readonly)

Returns the value of attribute company_logo

Returns:

  • (Object)

    the current value of company_logo



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#company_nameObject (readonly)

Returns the value of attribute company_name

Returns:

  • (Object)

    the current value of company_name



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#job_base_pay_rangeObject (readonly)

Returns the value of attribute job_base_pay_range

Returns:

  • (Object)

    the current value of job_base_pay_range



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#job_locationObject (readonly)

Returns the value of attribute job_location

Returns:

  • (Object)

    the current value of job_location



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#job_posted_timeObject (readonly)

Returns the value of attribute job_posted_time

Returns:

  • (Object)

    the current value of job_posted_time



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#job_posting_idObject (readonly)

Returns the value of attribute job_posting_id

Returns:

  • (Object)

    the current value of job_posting_id



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#job_summaryObject (readonly)

Returns the value of attribute job_summary

Returns:

  • (Object)

    the current value of job_summary



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#job_titleObject (readonly)

Returns the value of attribute job_title

Returns:

  • (Object)

    the current value of job_title



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/brightdata/linkedin/types/job.rb', line 29

Job = Data.define(
  :url, :job_posting_id, :job_title, :company_name, :job_location,
  :job_summary, :job_base_pay_range, :job_posted_time, :company_logo, :raw
) do
  # Build a job from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::Job]
  def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
    new(
      url: hash[:url],
      job_posting_id: hash[:job_posting_id],
      job_title: hash[:job_title],
      company_name: hash[:company_name],
      job_location: hash[:job_location],
      job_summary: hash[:job_summary],
      job_base_pay_range: hash[:job_base_pay_range],
      job_posted_time: hash[:job_posted_time],
      company_logo: hash[:company_logo],
      raw: hash
    )
  end
end

Class Method Details

.from_api(hash) ⇒ BrightData::LinkedIn::Types::Job

Build a job from a symbol-keyed API response.

Parameters:

  • hash (Hash)

    symbolized-key API response object

Returns:



37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/brightdata/linkedin/types/job.rb', line 37

def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response
  new(
    url: hash[:url],
    job_posting_id: hash[:job_posting_id],
    job_title: hash[:job_title],
    company_name: hash[:company_name],
    job_location: hash[:job_location],
    job_summary: hash[:job_summary],
    job_base_pay_range: hash[:job_base_pay_range],
    job_posted_time: hash[:job_posted_time],
    company_logo: hash[:company_logo],
    raw: hash
  )
end