Class: Google::Apis::YoutubeV3::LiveChatSuperStickerDetails

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

Returns a new instance of LiveChatSuperStickerDetails.



4808
4809
4810
# File 'generated/google/apis/youtube_v3/classes.rb', line 4808

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)


4785
4786
4787
# File 'generated/google/apis/youtube_v3/classes.rb', line 4785

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)


4790
4791
4792
# File 'generated/google/apis/youtube_v3/classes.rb', line 4790

def amount_micros
  @amount_micros
end

#currencyString

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

Returns:

  • (String)


4795
4796
4797
# File 'generated/google/apis/youtube_v3/classes.rb', line 4795

def currency
  @currency
end

#super_sticker_metadataGoogle::Apis::YoutubeV3::SuperStickerMetadata

Information about the Super Sticker. Corresponds to the JSON property superStickerMetadata



4800
4801
4802
# File 'generated/google/apis/youtube_v3/classes.rb', line 4800

def 
  @super_sticker_metadata
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)


4806
4807
4808
# File 'generated/google/apis/youtube_v3/classes.rb', line 4806

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4813
4814
4815
4816
4817
4818
4819
# File 'generated/google/apis/youtube_v3/classes.rb', line 4813

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