Class: BrightData::LinkedIn::Types::Job
- Inherits:
-
Data
- Object
- Data
- BrightData::LinkedIn::Types::Job
- Defined in:
- lib/brightdata/linkedin/types/job.rb
Overview
Use #raw to access fields not yet typed by this gem.
Typed representation of a LinkedIn job response.
Instance Attribute Summary collapse
-
#company_logo ⇒ Object
readonly
Returns the value of attribute company_logo.
-
#company_name ⇒ Object
readonly
Returns the value of attribute company_name.
-
#job_base_pay_range ⇒ Object
readonly
Returns the value of attribute job_base_pay_range.
-
#job_location ⇒ Object
readonly
Returns the value of attribute job_location.
-
#job_posted_time ⇒ Object
readonly
Returns the value of attribute job_posted_time.
-
#job_posting_id ⇒ Object
readonly
Returns the value of attribute job_posting_id.
-
#job_summary ⇒ Object
readonly
Returns the value of attribute job_summary.
-
#job_title ⇒ Object
readonly
Returns the value of attribute job_title.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#url ⇒ Object
readonly
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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_name ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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_location ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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_id ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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 |
#url ⇒ Object (readonly)
Returns the value of attribute 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 |