Class: Google::Apis::YoutubeV3::LiveChatSuperChatDetails
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubeV3::LiveChatSuperChatDetails
 
- 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_display_string  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A rendered string that displays the fund amount and currency to the user. 
- 
  
    
      #amount_micros  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The amount purchased by the user, in micros (1,750,000 micros = 1.75). 
- 
  
    
      #currency  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The currency in which the purchase was made. 
- 
  
    
      #tier  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The tier in which the amount belongs to. 
- 
  
    
      #user_comment  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The comment added by the user to this Super Chat event. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LiveChatSuperChatDetails 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LiveChatSuperChatDetails. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LiveChatSuperChatDetails
Returns a new instance of LiveChatSuperChatDetails
| 4709 4710 4711 | # File 'generated/google/apis/youtube_v3/classes.rb', line 4709 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#amount_display_string ⇒ String
A rendered string that displays the fund amount and currency to the user.
Corresponds to the JSON property amountDisplayString
| 4686 4687 4688 | # File 'generated/google/apis/youtube_v3/classes.rb', line 4686 def amount_display_string @amount_display_string end | 
#amount_micros ⇒ Fixnum
The amount purchased by the user, in micros (1,750,000 micros = 1.75).
Corresponds to the JSON property amountMicros
| 4691 4692 4693 | # File 'generated/google/apis/youtube_v3/classes.rb', line 4691 def amount_micros @amount_micros end | 
#currency ⇒ String
The currency in which the purchase was made.
Corresponds to the JSON property currency
| 4696 4697 4698 | # File 'generated/google/apis/youtube_v3/classes.rb', line 4696 def currency @currency end | 
#tier ⇒ Fixnum
The tier in which the amount belongs to. Lower amounts belong to lower tiers.
Starts at 1.
Corresponds to the JSON property tier
| 4702 4703 4704 | # File 'generated/google/apis/youtube_v3/classes.rb', line 4702 def tier @tier end | 
#user_comment ⇒ String
The comment added by the user to this Super Chat event.
Corresponds to the JSON property userComment
| 4707 4708 4709 | # File 'generated/google/apis/youtube_v3/classes.rb', line 4707 def user_comment @user_comment end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 4714 4715 4716 4717 4718 4719 4720 | # File 'generated/google/apis/youtube_v3/classes.rb', line 4714 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 |