Class: BrightData::LinkedIn::Types::PeopleDiscoverInput

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

Overview

Input shape for linkedin.people.discover_new_profiles.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#first_nameString? (readonly)

Returns first name to search by.

Returns:

  • (String, nil)

    first name to search by



14
15
16
17
18
19
20
21
# File 'lib/brightdata/linkedin/types/people_discover_input.rb', line 14

PeopleDiscoverInput = Data.define(:url, :first_name, :last_name) do
  # Serialize for Bright Data, omitting nil values.
  #
  # @return [Hash] API input payload
  def to_api_hash
    to_h.compact
  end
end

#last_nameString? (readonly)

Returns last name to search by.

Returns:

  • (String, nil)

    last name to search by



14
15
16
17
18
19
20
21
# File 'lib/brightdata/linkedin/types/people_discover_input.rb', line 14

PeopleDiscoverInput = Data.define(:url, :first_name, :last_name) do
  # Serialize for Bright Data, omitting nil values.
  #
  # @return [Hash] API input payload
  def to_api_hash
    to_h.compact
  end
end

#urlString (readonly)

Returns must be https://www.linkedin.com.

Returns:

  • (String)

    must be https://www.linkedin.com



14
15
16
17
18
19
20
21
# File 'lib/brightdata/linkedin/types/people_discover_input.rb', line 14

PeopleDiscoverInput = Data.define(:url, :first_name, :last_name) do
  # Serialize for Bright Data, omitting nil values.
  #
  # @return [Hash] API input payload
  def to_api_hash
    to_h.compact
  end
end

Instance Method Details

#to_api_hashHash

Serialize for Bright Data, omitting nil values.

Returns:

  • (Hash)

    API input payload



18
19
20
# File 'lib/brightdata/linkedin/types/people_discover_input.rb', line 18

def to_api_hash
  to_h.compact
end