Class: BrightData::LinkedIn::Types::Post
- Inherits:
-
Data
- Object
- Data
- BrightData::LinkedIn::Types::Post
- Defined in:
- lib/brightdata/linkedin/types/post.rb
Overview
Use #raw to access fields not yet typed by this gem.
Typed representation of a LinkedIn post response.
Instance Attribute Summary collapse
-
#comments_count ⇒ Object
readonly
Returns the value of attribute comments_count.
-
#date_posted ⇒ Object
readonly
Returns the value of attribute date_posted.
-
#embedded_links ⇒ Object
readonly
Returns the value of attribute embedded_links.
-
#hashtags ⇒ Object
readonly
Returns the value of attribute hashtags.
-
#headline ⇒ Object
readonly
Returns the value of attribute headline.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#likes ⇒ Object
readonly
Returns the value of attribute likes.
-
#original_post ⇒ Object
readonly
Returns the value of attribute original_post.
-
#post_text ⇒ Object
readonly
Returns the value of attribute post_text.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#repost ⇒ Object
readonly
Returns the value of attribute repost.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
-
#videos ⇒ Object
readonly
Returns the value of attribute videos.
Class Method Summary collapse
-
.from_api(hash) ⇒ BrightData::LinkedIn::Types::Post
Build a post from a symbol-keyed API response.
Instance Attribute Details
#comments_count ⇒ Object (readonly)
Returns the value of attribute comments_count
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#date_posted ⇒ Object (readonly)
Returns the value of attribute date_posted
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#embedded_links ⇒ Object (readonly)
Returns the value of attribute embedded_links
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#hashtags ⇒ Object (readonly)
Returns the value of attribute hashtags
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#headline ⇒ Object (readonly)
Returns the value of attribute headline
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#id ⇒ Object (readonly)
Returns the value of attribute id
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#images ⇒ Object (readonly)
Returns the value of attribute images
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#likes ⇒ Object (readonly)
Returns the value of attribute likes
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#original_post ⇒ Object (readonly)
Returns the value of attribute original_post
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#post_text ⇒ Object (readonly)
Returns the value of attribute post_text
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#repost ⇒ Object (readonly)
Returns the value of attribute repost
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
#videos ⇒ Object (readonly)
Returns the value of attribute videos
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/brightdata/linkedin/types/post.rb', line 37 Post = Data.define( :id, :user_id, :headline, :post_text, :date_posted, :hashtags, :embedded_links, :images, :videos, :likes, :comments_count, :repost, :original_post, :raw ) do # Build a post from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::Post] def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end end |
Class Method Details
.from_api(hash) ⇒ BrightData::LinkedIn::Types::Post
Build a post from a symbol-keyed API response.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/brightdata/linkedin/types/post.rb', line 46 def self.from_api(hash) # rubocop:disable Metrics/MethodLength -- flat field-by-field mapping from the API response new( id: hash[:id], user_id: hash[:user_id], headline: hash[:headline], post_text: hash[:post_text], date_posted: hash[:date_posted], hashtags: hash[:hashtags], embedded_links: hash[:embedded_links], images: hash[:images], videos: hash[:videos], likes: hash[:likes], comments_count: hash[:comments_count], repost: hash[:repost], original_post: hash[:original_post], raw: hash ) end |