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

#avatarObject (readonly)

Returns the value of attribute avatar

Returns:

  • (Object)

    the current value of avatar



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

#educationObject (readonly)

Returns the value of attribute education

Returns:

  • (Object)

    the current value of education



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

#experienceObject (readonly)

Returns the value of attribute experience

Returns:

  • (Object)

    the current value of experience



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

#locationObject (readonly)

Returns the value of attribute location

Returns:

  • (Object)

    the current value of 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

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



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

#subtitleObject (readonly)

Returns the value of attribute subtitle

Returns:

  • (Object)

    the current value of 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

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of 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