Class: BrightData::LinkedIn::Types::DiscoveredProfile

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

Overview

Note:

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

Typed representation of a discovered LinkedIn profile response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#avatarString? (readonly)

Returns avatar URL.

Returns:

  • (String, nil)

    avatar URL



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

#educationString, ... (readonly)

Returns education summary.

Returns:

  • (String, Hash, Array, nil)

    education summary



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

#experienceString, ... (readonly)

Returns experience summary.

Returns:

  • (String, Hash, Array, nil)

    experience summary



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

#locationString? (readonly)

Returns profile location.

Returns:

  • (String, nil)

    profile location



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

#nameString? (readonly)

Returns profile name.

Returns:

  • (String, nil)

    profile name



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

#rawHash (readonly)

Returns full parsed API response.

Returns:

  • (Hash)

    full parsed API response



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

#subtitleString? (readonly)

Returns profile subtitle.

Returns:

  • (String, nil)

    profile subtitle



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

#urlString? (readonly)

Returns profile URL.

Returns:

  • (String, nil)

    profile URL



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25

DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do
  # Build a discovered profile from a symbol-keyed API response.
  #
  # @param hash [Hash] symbolized-key API response object
  # @return [BrightData::LinkedIn::Types::DiscoveredProfile]
  def self.from_api(hash)
    new(
      url: hash[:url],
      name: hash[:name],
      subtitle: hash[:subtitle],
      location: hash[:location],
      experience: hash[:experience],
      education: hash[:education],
      avatar: hash[:avatar],
      raw: hash
    )
  end
end

Class Method Details

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

Build a discovered profile from a symbol-keyed API response.

Parameters:

  • hash (Hash)

    symbolized-key API response object

Returns:



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 30

def self.from_api(hash)
  new(
    url: hash[:url],
    name: hash[:name],
    subtitle: hash[:subtitle],
    location: hash[:location],
    experience: hash[:experience],
    education: hash[:education],
    avatar: hash[:avatar],
    raw: hash
  )
end