Class: Google::Apis::YoutubeV3::LiveChatBanSnippet

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

Returns a new instance of LiveChatBanSnippet



4014
4015
4016
# File 'generated/google/apis/youtube_v3/classes.rb', line 4014

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

Instance Attribute Details

#ban_duration_secondsFixnum

The duration of a ban, only filled if the ban has type TEMPORARY. Corresponds to the JSON property banDurationSeconds

Returns:

  • (Fixnum)


3997
3998
3999
# File 'generated/google/apis/youtube_v3/classes.rb', line 3997

def ban_duration_seconds
  @ban_duration_seconds
end

#banned_user_detailsGoogle::Apis::YoutubeV3::ChannelProfileDetails

Corresponds to the JSON property bannedUserDetails



4002
4003
4004
# File 'generated/google/apis/youtube_v3/classes.rb', line 4002

def banned_user_details
  @banned_user_details
end

#live_chat_idString

The chat this ban is pertinent to. Corresponds to the JSON property liveChatId

Returns:

  • (String)


4007
4008
4009
# File 'generated/google/apis/youtube_v3/classes.rb', line 4007

def live_chat_id
  @live_chat_id
end

#typeString

The type of ban. Corresponds to the JSON property type

Returns:

  • (String)


4012
4013
4014
# File 'generated/google/apis/youtube_v3/classes.rb', line 4012

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4019
4020
4021
4022
4023
4024
# File 'generated/google/apis/youtube_v3/classes.rb', line 4019

def update!(**args)
  @ban_duration_seconds = args[:ban_duration_seconds] if args.key?(:ban_duration_seconds)
  @banned_user_details = args[:banned_user_details] if args.key?(:banned_user_details)
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
  @type = args[:type] if args.key?(:type)
end