Class: BrightData::LinkedIn::Posts
- Inherits:
-
Object
- Object
- BrightData::LinkedIn::Posts
- 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
- #collect_by_url ⇒ BrightData::LinkedIn::Posts::CollectByUrl readonly
- #discover_by_company_url ⇒ BrightData::LinkedIn::Posts::DiscoverByCompanyUrl readonly
- #discover_by_profile_url ⇒ BrightData::LinkedIn::Posts::DiscoverByProfileUrl readonly
- #discover_by_url ⇒ BrightData::LinkedIn::Posts::DiscoverByUrl readonly
Instance Method Summary collapse
-
#initialize(http:) ⇒ Posts
constructor
A new instance of Posts.
-
#inspect ⇒ String
Developer-friendly mode summary.
Constructor Details
#initialize(http:) ⇒ Posts
Returns a new instance of Posts.
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_url ⇒ BrightData::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_url ⇒ BrightData::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_url ⇒ BrightData::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_url ⇒ BrightData::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
#inspect ⇒ String
Returns 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 |