Class: BrightData::LinkedIn::Types::Job
- Inherits:
-
Data
- Object
- Data
- BrightData::LinkedIn::Types::Job
- 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
-
#company_logo ⇒ String?
readonly
Company logo URL.
-
#company_name ⇒ String?
readonly
Company name.
-
#job_base_pay_range ⇒ String?
readonly
Base pay range.
-
#job_location ⇒ String?
readonly
Job location.
-
#job_posted_time ⇒ String?
readonly
Posted time.
-
#job_posting_id ⇒ String?
readonly
Job posting ID.
-
#job_summary ⇒ String?
readonly
Job summary.
-
#job_title ⇒ String?
readonly
Job title.
-
#raw ⇒ Hash
readonly
Full parsed API response.
-
#url ⇒ String?
readonly
Job URL.
Class Method Summary collapse
-
.from_api(hash) ⇒ BrightData::LinkedIn::Types::Job
Build a job from a symbol-keyed API response.
Instance Attribute Details
#company_logo ⇒ String? (readonly)
Returns company logo 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 |
#company_name ⇒ String? (readonly)
Returns 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_range ⇒ String? (readonly)
Returns 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_location ⇒ String? (readonly)
Returns 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_time ⇒ String? (readonly)
Returns 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_id ⇒ String? (readonly)
Returns 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_summary ⇒ String? (readonly)
Returns 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_title ⇒ String? (readonly)
Returns 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 |
#raw ⇒ Hash (readonly)
Returns full parsed API response.
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 |
#url ⇒ String? (readonly)
Returns job 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.
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 |