Class: BrightData::LinkedIn::Posts

Inherits:
Object
  • Object
show all
Defined in:
lib/brightdata/linkedin/posts.rb

Overview

‘client.linkedin.posts` endpoint family for LinkedIn posts.

Defined Under Namespace

Classes: CollectByUrl, DiscoverByCompanyUrl, DiscoverByProfileUrl, DiscoverByUrl

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http:) ⇒ Posts

Returns a new instance of Posts.

Parameters:



20
21
22
23
24
25
# File 'lib/brightdata/linkedin/posts.rb', line 20

def initialize(http:)
  @collect_by_url = CollectByUrl.new(http:)
  @discover_by_profile_url = DiscoverByProfileUrl.new(http:)
  @discover_by_url = DiscoverByUrl.new(http:)
  @discover_by_company_url = DiscoverByCompanyUrl.new(http:)
end

Instance Attribute Details

#collect_by_urlBrightData::LinkedIn::Posts::CollectByUrl (readonly)



8
9
10
# File 'lib/brightdata/linkedin/posts.rb', line 8

def collect_by_url
  @collect_by_url
end

#discover_by_company_urlBrightData::LinkedIn::Posts::DiscoverByCompanyUrl (readonly)



17
18
19
# File 'lib/brightdata/linkedin/posts.rb', line 17

def discover_by_company_url
  @discover_by_company_url
end

#discover_by_profile_urlBrightData::LinkedIn::Posts::DiscoverByProfileUrl (readonly)



11
12
13
# File 'lib/brightdata/linkedin/posts.rb', line 11

def discover_by_profile_url
  @discover_by_profile_url
end

#discover_by_urlBrightData::LinkedIn::Posts::DiscoverByUrl (readonly)



14
15
16
# File 'lib/brightdata/linkedin/posts.rb', line 14

def discover_by_url
  @discover_by_url
end

Instance Method Details

#inspectString

Returns developer-friendly mode summary.

Returns:

  • (String)

    developer-friendly mode summary



28
29
30
31
# File 'lib/brightdata/linkedin/posts.rb', line 28

def inspect
  modes = %i[collect_by_url discover_by_profile_url discover_by_url discover_by_company_url]
  "#<BrightData::LinkedIn::Posts modes=#{modes}>"
end