Class: Google::Apis::YoutubeV3::LiveChatSuperChatDetails

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

Returns a new instance of LiveChatSuperChatDetails.



4768
4769
4770
# File 'generated/google/apis/youtube_v3/classes.rb', line 4768

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)


4745
4746
4747
# File 'generated/google/apis/youtube_v3/classes.rb', line 4745

def amount_display_string
  @amount_display_string
end

#amount_microsFixnum

The amount purchased by the user, in micros (1,750,000 micros = 1.75). Corresponds to the JSON property amountMicros

Returns:

  • (Fixnum)


4750
4751
4752
# File 'generated/google/apis/youtube_v3/classes.rb', line 4750

def amount_micros
  @amount_micros
end

#currencyString

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

Returns:

  • (String)


4755
4756
4757
# File 'generated/google/apis/youtube_v3/classes.rb', line 4755

def currency
  @currency
end

#tierFixnum

The tier in which the amount belongs. Lower amounts belong to lower tiers. The lowest tier is 1. Corresponds to the JSON property tier

Returns:

  • (Fixnum)


4761
4762
4763
# File 'generated/google/apis/youtube_v3/classes.rb', line 4761

def tier
  @tier
end

#user_commentString

The comment added by the user to this Super Chat event. Corresponds to the JSON property userComment

Returns:

  • (String)


4766
4767
4768
# File 'generated/google/apis/youtube_v3/classes.rb', line 4766

def user_comment
  @user_comment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4773
4774
4775
4776
4777
4778
4779
# File 'generated/google/apis/youtube_v3/classes.rb', line 4773

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)
  @tier = args[:tier] if args.key?(:tier)
  @user_comment = args[:user_comment] if args.key?(:user_comment)
end