Class: Google::Apis::YoutubeV3::LiveChatBanSnippet
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::YoutubeV3::LiveChatBanSnippet
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #ban_duration_seconds  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The duration of a ban, only filled if the ban has type TEMPORARY.
 - 
  
    
      #banned_user_details  ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
bannedUserDetails. - 
  
    
      #live_chat_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The chat this ban is pertinent to.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of ban.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LiveChatBanSnippet 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of LiveChatBanSnippet.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ LiveChatBanSnippet
Returns a new instance of LiveChatBanSnippet.
      4160 4161 4162  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 4160 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#ban_duration_seconds ⇒ Fixnum
The duration of a ban, only filled if the ban has type TEMPORARY.
Corresponds to the JSON property banDurationSeconds
      4143 4144 4145  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 4143 def ban_duration_seconds @ban_duration_seconds end  | 
  
#banned_user_details ⇒ Google::Apis::YoutubeV3::ChannelProfileDetails
Corresponds to the JSON property bannedUserDetails
      4148 4149 4150  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 4148 def banned_user_details @banned_user_details end  | 
  
#live_chat_id ⇒ String
The chat this ban is pertinent to.
Corresponds to the JSON property liveChatId
      4153 4154 4155  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 4153 def live_chat_id @live_chat_id end  | 
  
#type ⇒ String
The type of ban.
Corresponds to the JSON property type
      4158 4159 4160  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 4158 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4165 4166 4167 4168 4169 4170  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 4165 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  |