Class: Google::Apis::YoutubeV3::ActivityContentDetailsSocial

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActivityContentDetailsSocial

Returns a new instance of ActivityContentDetailsSocial.



508
509
510
# File 'generated/google/apis/youtube_v3/classes.rb', line 508

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorString

The author of the social network post. Corresponds to the JSON property author

Returns:

  • (String)


486
487
488
# File 'generated/google/apis/youtube_v3/classes.rb', line 486

def author
  @author
end

#image_urlString

An image of the post's author. Corresponds to the JSON property imageUrl

Returns:

  • (String)


491
492
493
# File 'generated/google/apis/youtube_v3/classes.rb', line 491

def image_url
  @image_url
end

#reference_urlString

The URL of the social network post. Corresponds to the JSON property referenceUrl

Returns:

  • (String)


496
497
498
# File 'generated/google/apis/youtube_v3/classes.rb', line 496

def reference_url
  @reference_url
end

#resource_idGoogle::Apis::YoutubeV3::ResourceId

A resource id is a generic reference that points to another YouTube resource. Corresponds to the JSON property resourceId



501
502
503
# File 'generated/google/apis/youtube_v3/classes.rb', line 501

def resource_id
  @resource_id
end

#typeString

The name of the social network. Corresponds to the JSON property type

Returns:

  • (String)


506
507
508
# File 'generated/google/apis/youtube_v3/classes.rb', line 506

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



513
514
515
516
517
518
519
# File 'generated/google/apis/youtube_v3/classes.rb', line 513

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