Class: Google::Apis::YoutubeV3::SponsorSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::SponsorSnippet
- 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
-
#channel_id ⇒ String
The id of the channel being sponsored.
-
#cumulative_duration_months ⇒ Fixnum
The cumulative time a user has been a sponsor in months.
-
#sponsor_details ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails
Details about the sponsor.
-
#sponsor_since ⇒ DateTime
The date and time when the user became a sponsor.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SponsorSnippet
constructor
A new instance of SponsorSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SponsorSnippet
Returns a new instance of SponsorSnippet
6646 6647 6648 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6646 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_id ⇒ String
The id of the channel being sponsored.
Corresponds to the JSON property channelId
6628 6629 6630 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6628 def channel_id @channel_id end |
#cumulative_duration_months ⇒ Fixnum
The cumulative time a user has been a sponsor in months.
Corresponds to the JSON property cumulativeDurationMonths
6633 6634 6635 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6633 def cumulative_duration_months @cumulative_duration_months end |
#sponsor_details ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails
Details about the sponsor.
Corresponds to the JSON property sponsorDetails
6638 6639 6640 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6638 def sponsor_details @sponsor_details end |
#sponsor_since ⇒ DateTime
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
6644 6645 6646 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6644 def sponsor_since @sponsor_since end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6651 6652 6653 6654 6655 6656 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6651 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @cumulative_duration_months = args[:cumulative_duration_months] if args.key?(:cumulative_duration_months) @sponsor_details = args[:sponsor_details] if args.key?(:sponsor_details) @sponsor_since = args[:sponsor_since] if args.key?(:sponsor_since) end |