Class: BrightData::LinkedIn::Types::Company
- Inherits:
-
Data
- Object
- Data
- BrightData::LinkedIn::Types::Company
- Defined in:
- lib/brightdata/linkedin/types/company.rb
Overview
Use #raw to access fields not yet typed by this gem.
Typed representation of a LinkedIn company response.
Instance Attribute Summary collapse
-
#affiliated ⇒ Array<Hash>?
readonly
Affiliated companies.
-
#company_id ⇒ String?
readonly
LinkedIn company ID.
-
#company_size ⇒ String?
readonly
Company size.
-
#country_code ⇒ String?
readonly
Country code.
-
#employees ⇒ Array<Hash>?
readonly
Employees.
-
#employees_in_linkedin ⇒ Integer, ...
readonly
LinkedIn employee count.
-
#followers ⇒ Integer, ...
readonly
Follower count.
-
#founded ⇒ String, ...
readonly
Founded year.
-
#funding ⇒ Hash?
readonly
Funding details.
-
#headquarters ⇒ Hash?
readonly
Headquarters.
-
#id ⇒ String?
readonly
Company ID.
-
#image ⇒ String?
readonly
Image URL.
-
#industries ⇒ Array<String>?
readonly
Industries.
-
#investors ⇒ Array<Hash>?
readonly
Investors.
-
#locations ⇒ Array<Hash>?
readonly
Company locations.
-
#logo ⇒ String?
readonly
Logo URL.
-
#name ⇒ String?
readonly
Company name.
-
#raw ⇒ Hash
readonly
Full parsed API response.
-
#similar ⇒ Array<Hash>?
readonly
Similar companies.
-
#specialties ⇒ Array<String>?
readonly
Specialties.
-
#updates ⇒ Array<Hash>?
readonly
Updates.
-
#website ⇒ String?
readonly
Company website.
Class Method Summary collapse
-
.from_api(hash) ⇒ BrightData::LinkedIn::Types::Company
Build a company from a symbol-keyed API response.
Instance Attribute Details
#affiliated ⇒ Array<Hash>? (readonly)
Returns affiliated companies.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#company_id ⇒ String? (readonly)
Returns LinkedIn company ID.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#company_size ⇒ String? (readonly)
Returns company size.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#country_code ⇒ String? (readonly)
Returns country code.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#employees ⇒ Array<Hash>? (readonly)
Returns employees.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#employees_in_linkedin ⇒ Integer, ... (readonly)
Returns LinkedIn employee count.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#followers ⇒ Integer, ... (readonly)
Returns follower count.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#founded ⇒ String, ... (readonly)
Returns founded year.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#funding ⇒ Hash? (readonly)
Returns funding details.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#headquarters ⇒ Hash? (readonly)
Returns headquarters.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#id ⇒ String? (readonly)
Returns company ID.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#image ⇒ String? (readonly)
Returns image URL.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#industries ⇒ Array<String>? (readonly)
Returns industries.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#investors ⇒ Array<Hash>? (readonly)
Returns investors.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#locations ⇒ Array<Hash>? (readonly)
Returns company locations.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#logo ⇒ String? (readonly)
Returns logo URL.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#name ⇒ String? (readonly)
Returns company name.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#raw ⇒ Hash (readonly)
Returns full parsed API response.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#similar ⇒ Array<Hash>? (readonly)
Returns similar companies.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#specialties ⇒ Array<String>? (readonly)
Returns specialties.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#updates ⇒ Array<Hash>? (readonly)
Returns updates.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
#website ⇒ String? (readonly)
Returns company website.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/brightdata/linkedin/types/company.rb', line 53 Company = Data.define( :id, :name, :country_code, :locations, :followers, :employees_in_linkedin, :company_size, :industries, :specialties, :website, :founded, :company_id, :employees, :similar, :updates, :logo, :image, :headquarters, :funding, :investors, :affiliated, :raw ) do # Build a company from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Company] def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end end |
Class Method Details
.from_api(hash) ⇒ BrightData::LinkedIn::Types::Company
Build a company from a symbol-keyed API response.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/brightdata/linkedin/types/company.rb', line 63 def self.from_api(hash) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], name: hash[:name], country_code: hash[:country_code], locations: hash[:locations], followers: hash[:followers], employees_in_linkedin: hash[:employees_in_linkedin], company_size: hash[:company_size], industries: hash[:industries], specialties: hash[:specialties], website: hash[:website], founded: hash[:founded], company_id: hash[:company_id], employees: hash[:employees], similar: hash[:similar], updates: hash[:updates], logo: hash[:logo], image: hash[:image], headquarters: hash[:headquarters], funding: hash[:funding], investors: hash[:investors], affiliated: hash[:affiliated], raw: hash ) end |