Class: Google::Apis::YoutubeV3::SuperChatEventSnippet

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

Returns a new instance of SuperChatEventSnippet



6807
6808
6809
# File 'generated/google/apis/youtube_v3/classes.rb', line 6807

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

Instance Attribute Details

#amount_microsFixnum

The purchase amount, in micros of the purchase currency. e.g., 1 is represented as 1000000. Corresponds to the JSON property amountMicros

Returns:

  • (Fixnum)


6767
6768
6769
# File 'generated/google/apis/youtube_v3/classes.rb', line 6767

def amount_micros
  @amount_micros
end

#channel_idString

Channel id where the event occurred. Corresponds to the JSON property channelId

Returns:

  • (String)


6772
6773
6774
# File 'generated/google/apis/youtube_v3/classes.rb', line 6772

def channel_id
  @channel_id
end

#comment_textString

The text contents of the comment left by the user. Corresponds to the JSON property commentText

Returns:

  • (String)


6777
6778
6779
# File 'generated/google/apis/youtube_v3/classes.rb', line 6777

def comment_text
  @comment_text
end

#created_atDateTime

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

Returns:

  • (DateTime)


6783
6784
6785
# File 'generated/google/apis/youtube_v3/classes.rb', line 6783

def created_at
  @created_at
end

#currencyString

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

Returns:

  • (String)


6788
6789
6790
# File 'generated/google/apis/youtube_v3/classes.rb', line 6788

def currency
  @currency
end

#display_stringString

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

Returns:

  • (String)


6794
6795
6796
# File 'generated/google/apis/youtube_v3/classes.rb', line 6794

def display_string
  @display_string
end

#message_typeFixnum

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

Returns:

  • (Fixnum)


6800
6801
6802
# File 'generated/google/apis/youtube_v3/classes.rb', line 6800

def message_type
  @message_type
end

#supporter_detailsGoogle::Apis::YoutubeV3::ChannelProfileDetails

Details about the supporter. Corresponds to the JSON property supporterDetails



6805
6806
6807
# File 'generated/google/apis/youtube_v3/classes.rb', line 6805

def supporter_details
  @supporter_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
# File 'generated/google/apis/youtube_v3/classes.rb', line 6812

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