Class: Google::Apis::YoutubeV3::FanFundingEventSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::FanFundingEventSnippet
- 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
-
#amount_micros ⇒ Fixnum
The amount of funding in micros of fund_currency.
-
#channel_id ⇒ String
Channel id where the funding event occurred.
-
#comment_text ⇒ String
The text contents of the comment left by the user.
-
#created_at ⇒ DateTime
The date and time when the funding occurred.
-
#currency ⇒ String
The currency in which the fund was made.
-
#display_string ⇒ String
A rendered string that displays the fund amount and currency (e.g., "$1.00").
-
#supporter_details ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails
Details about the supporter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FanFundingEventSnippet
constructor
A new instance of FanFundingEventSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FanFundingEventSnippet
Returns a new instance of FanFundingEventSnippet
2890 2891 2892 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2890 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount_micros ⇒ Fixnum
The amount of funding in micros of fund_currency. e.g., 1 is represented
Corresponds to the JSON property amountMicros
2855 2856 2857 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2855 def amount_micros @amount_micros end |
#channel_id ⇒ String
Channel id where the funding event occurred.
Corresponds to the JSON property channelId
2860 2861 2862 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2860 def channel_id @channel_id end |
#comment_text ⇒ String
The text contents of the comment left by the user.
Corresponds to the JSON property commentText
2865 2866 2867 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2865 def comment_text @comment_text end |
#created_at ⇒ DateTime
The date and time when the funding occurred. The value is specified in ISO
8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property createdAt
2871 2872 2873 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2871 def created_at @created_at end |
#currency ⇒ String
The currency in which the fund was made. ISO 4217.
Corresponds to the JSON property currency
2876 2877 2878 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2876 def currency @currency end |
#display_string ⇒ String
A rendered string that displays the fund amount and currency (e.g., "$1.00").
The string is rendered for the given language.
Corresponds to the JSON property displayString
2882 2883 2884 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2882 def display_string @display_string end |
#supporter_details ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails
Details about the supporter. Only filled if the event was made public by the
user.
Corresponds to the JSON property supporterDetails
2888 2889 2890 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2888 def supporter_details @supporter_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2895 2896 2897 2898 2899 2900 2901 2902 2903 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2895 def update!(**args) @amount_micros = args[:amount_micros] if args.key?(:amount_micros) @channel_id = args[:channel_id] if args.key?(:channel_id) @comment_text = args[:comment_text] if args.key?(:comment_text) @created_at = args[:created_at] if args.key?(:created_at) @currency = args[:currency] if args.key?(:currency) @display_string = args[:display_string] if args.key?(:display_string) @supporter_details = args[:supporter_details] if args.key?(:supporter_details) end |