Class: Google::Apis::YoutubeV3::ActivityContentDetailsSocial
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::ActivityContentDetailsSocial
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb
Overview
Details about a social network post.
Instance Attribute Summary collapse
-
#author ⇒ String
The author of the social network post.
-
#image_url ⇒ String
An image of the post's author.
-
#reference_url ⇒ String
The URL of the social network post.
-
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
-
#type ⇒ String
The name of the social network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivityContentDetailsSocial
constructor
A new instance of ActivityContentDetailsSocial.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ActivityContentDetailsSocial
Returns a new instance of ActivityContentDetailsSocial
452 453 454 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 452 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author ⇒ String
The author of the social network post.
Corresponds to the JSON property author
430 431 432 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 430 def @author end |
#image_url ⇒ String
An image of the post's author.
Corresponds to the JSON property imageUrl
435 436 437 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 435 def image_url @image_url end |
#reference_url ⇒ String
The URL of the social network post.
Corresponds to the JSON property referenceUrl
440 441 442 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 440 def reference_url @reference_url end |
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Corresponds to the JSON property resourceId
445 446 447 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 445 def resource_id @resource_id end |
#type ⇒ String
The name of the social network.
Corresponds to the JSON property type
450 451 452 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 450 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
457 458 459 460 461 462 463 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 457 def update!(**args) @author = args[:author] if args.key?(:author) @image_url = args[:image_url] if args.key?(:image_url) @reference_url = args[:reference_url] if args.key?(:reference_url) @resource_id = args[:resource_id] if args.key?(:resource_id) @type = args[:type] if args.key?(:type) end |