Class: Google::Apis::YoutubeV3::SuperChatEventSnippet
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::SuperChatEventSnippet
- 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 purchase amount, in micros of the purchase currency.
-
#channel_id ⇒ String
Channel id where the event occurred.
-
#comment_text ⇒ String
The text contents of the comment left by the user.
-
#created_at ⇒ DateTime
The date and time when the event occurred.
-
#currency ⇒ String
The currency in which the purchase was made.
-
#display_string ⇒ String
A rendered string that displays the purchase amount and currency (e.g., "$1.00" ).
-
#message_type ⇒ Fixnum
The tier for the paid message, which is based on the amount of money spent to purchase the message.
-
#supporter_details ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails
Details about the supporter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SuperChatEventSnippet
constructor
A new instance of SuperChatEventSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SuperChatEventSnippet
Returns a new instance of SuperChatEventSnippet
6861 6862 6863 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6861 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount_micros ⇒ Fixnum
The purchase amount, in micros of the purchase currency. e.g., 1 is
represented as 1000000.
Corresponds to the JSON property amountMicros
6821 6822 6823 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6821 def amount_micros @amount_micros end |
#channel_id ⇒ String
Channel id where the event occurred.
Corresponds to the JSON property channelId
6826 6827 6828 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6826 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
6831 6832 6833 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6831 def comment_text @comment_text end |
#created_at ⇒ DateTime
The date and time when the event occurred. The value is specified in ISO 8601 (
YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property createdAt
6837 6838 6839 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6837 def created_at @created_at end |
#currency ⇒ String
The currency in which the purchase was made. ISO 4217.
Corresponds to the JSON property currency
6842 6843 6844 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6842 def currency @currency end |
#display_string ⇒ String
A rendered string that displays the purchase amount and currency (e.g., "$1.00"
). The string is rendered for the given language.
Corresponds to the JSON property displayString
6848 6849 6850 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6848 def display_string @display_string end |
#message_type ⇒ Fixnum
The tier for the paid message, which is based on the amount of money spent to
purchase the message.
Corresponds to the JSON property messageType
6854 6855 6856 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6854 def @message_type end |
#supporter_details ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails
Details about the supporter.
Corresponds to the JSON property supporterDetails
6859 6860 6861 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6859 def supporter_details @supporter_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 6866 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) @message_type = args[:message_type] if args.key?(:message_type) @supporter_details = args[:supporter_details] if args.key?(:supporter_details) end |