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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#authorString

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

Returns:

  • (String)


430
431
432
# File 'generated/google/apis/youtube_v3/classes.rb', line 430

def author
  @author
end

#image_urlString

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

Returns:

  • (String)


435
436
437
# File 'generated/google/apis/youtube_v3/classes.rb', line 435

def image_url
  @image_url
end

#reference_urlString

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

Returns:

  • (String)


440
441
442
# File 'generated/google/apis/youtube_v3/classes.rb', line 440

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



445
446
447
# File 'generated/google/apis/youtube_v3/classes.rb', line 445

def resource_id
  @resource_id
end

#typeString

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

Returns:

  • (String)


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