Class: BrightData::LinkedIn::Types::Company

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

Overview

Note:

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

Typed representation of a LinkedIn company response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#affiliatedArray<Hash>? (readonly)

Returns affiliated companies.

Returns:

  • (Array<Hash>, nil)

    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_idString? (readonly)

Returns LinkedIn company ID.

Returns:

  • (String, nil)

    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_sizeString? (readonly)

Returns company size.

Returns:

  • (String, nil)

    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_codeString? (readonly)

Returns country code.

Returns:

  • (String, nil)

    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

#employeesArray<Hash>? (readonly)

Returns employees.

Returns:

  • (Array<Hash>, nil)

    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_linkedinInteger, ... (readonly)

Returns LinkedIn employee count.

Returns:

  • (Integer, String, nil)

    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

#followersInteger, ... (readonly)

Returns follower count.

Returns:

  • (Integer, String, nil)

    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

#foundedString, ... (readonly)

Returns founded year.

Returns:

  • (String, Integer, nil)

    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

#fundingHash? (readonly)

Returns funding details.

Returns:

  • (Hash, nil)

    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

#headquartersHash? (readonly)

Returns headquarters.

Returns:

  • (Hash, nil)

    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

#idString? (readonly)

Returns company ID.

Returns:

  • (String, nil)

    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

#imageString? (readonly)

Returns image URL.

Returns:

  • (String, nil)

    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

#industriesArray<String>? (readonly)

Returns industries.

Returns:

  • (Array<String>, nil)

    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

#investorsArray<Hash>? (readonly)

Returns investors.

Returns:

  • (Array<Hash>, nil)

    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

#locationsArray<Hash>? (readonly)

Returns company locations.

Returns:

  • (Array<Hash>, nil)

    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

#logoString? (readonly)

Returns logo URL.

Returns:

  • (String, nil)

    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

#nameString? (readonly)

Returns company name.

Returns:

  • (String, nil)

    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

#rawHash (readonly)

Returns full parsed API response.

Returns:

  • (Hash)

    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

#similarArray<Hash>? (readonly)

Returns similar companies.

Returns:

  • (Array<Hash>, nil)

    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

#specialtiesArray<String>? (readonly)

Returns specialties.

Returns:

  • (Array<String>, nil)

    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

#updatesArray<Hash>? (readonly)

Returns updates.

Returns:

  • (Array<Hash>, nil)

    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

#websiteString? (readonly)

Returns company website.

Returns:

  • (String, nil)

    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.

Parameters:

  • hash (Hash)

    symbolized-key API response object

Returns:



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