Class: Google::Apis::YoutubeV3::SponsorSnippet

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

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) ⇒ SponsorSnippet

Returns a new instance of SponsorSnippet.



6387
6388
6389
# File 'generated/google/apis/youtube_v3/classes.rb', line 6387

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

Instance Attribute Details

#channel_idString

The id of the channel being sponsored. Corresponds to the JSON property channelId

Returns:

  • (String)


6374
6375
6376
# File 'generated/google/apis/youtube_v3/classes.rb', line 6374

def channel_id
  @channel_id
end

Details about the sponsor. Corresponds to the JSON property sponsorDetails



6379
6380
6381
# File 'generated/google/apis/youtube_v3/classes.rb', line 6379

def sponsor_details
  @sponsor_details
end

The date and time when the user became a sponsor. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Corresponds to the JSON property sponsorSince

Returns:

  • (DateTime)


6385
6386
6387
# File 'generated/google/apis/youtube_v3/classes.rb', line 6385

def sponsor_since
  @sponsor_since
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6392
6393
6394
6395
6396
# File 'generated/google/apis/youtube_v3/classes.rb', line 6392

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @sponsor_details = args[:sponsor_details] if args.key?(:sponsor_details)
  @sponsor_since = args[:sponsor_since] if args.key?(:sponsor_since)
end