Class: Google::Apis::YoutubeV3::LiveChatUserBannedMessageDetails

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

Returns a new instance of LiveChatUserBannedMessageDetails



4802
4803
4804
# File 'generated/google/apis/youtube_v3/classes.rb', line 4802

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

Instance Attribute Details

#ban_duration_secondsFixnum

The duration of the ban. This property is only present if the banType is temporary. Corresponds to the JSON property banDurationSeconds

Returns:

  • (Fixnum)


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

def ban_duration_seconds
  @ban_duration_seconds
end

#ban_typeString

The type of ban. Corresponds to the JSON property banType

Returns:

  • (String)


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

def ban_type
  @ban_type
end

#banned_user_detailsGoogle::Apis::YoutubeV3::ChannelProfileDetails

The details of the user that was banned. Corresponds to the JSON property bannedUserDetails



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

def banned_user_details
  @banned_user_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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