Class: Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiveChatFanFundingEventDetails

Returns a new instance of LiveChatFanFundingEventDetails.



4118
4119
4120
# File 'lib/google/apis/youtube_v3/classes.rb', line 4118

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

Instance Attribute Details

#amount_display_stringString

A rendered string that displays the fund amount and currency to the user. Corresponds to the JSON property amountDisplayString

Returns:

  • (String)


4101
4102
4103
# File 'lib/google/apis/youtube_v3/classes.rb', line 4101

def amount_display_string
  @amount_display_string
end

#amount_microsFixnum

The amount of the fund. Corresponds to the JSON property amountMicros

Returns:

  • (Fixnum)


4106
4107
4108
# File 'lib/google/apis/youtube_v3/classes.rb', line 4106

def amount_micros
  @amount_micros
end

#currencyString

The currency in which the fund was made. Corresponds to the JSON property currency

Returns:

  • (String)


4111
4112
4113
# File 'lib/google/apis/youtube_v3/classes.rb', line 4111

def currency
  @currency
end

#user_commentString

The comment added by the user to this fan funding event. Corresponds to the JSON property userComment

Returns:

  • (String)


4116
4117
4118
# File 'lib/google/apis/youtube_v3/classes.rb', line 4116

def user_comment
  @user_comment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4123
4124
4125
4126
4127
4128
# File 'lib/google/apis/youtube_v3/classes.rb', line 4123

def update!(**args)
  @amount_display_string = args[:amount_display_string] if args.key?(:amount_display_string)
  @amount_micros = args[:amount_micros] if args.key?(:amount_micros)
  @currency = args[:currency] if args.key?(:currency)
  @user_comment = args[:user_comment] if args.key?(:user_comment)
end