Class: Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails

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

Returns a new instance of LiveChatMessageAuthorDetails.



4205
4206
4207
# File 'generated/google/apis/youtube_v3/classes.rb', line 4205

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

Instance Attribute Details

#channel_idString

The YouTube channel ID. Corresponds to the JSON property channelId

Returns:

  • (String)


4164
4165
4166
# File 'generated/google/apis/youtube_v3/classes.rb', line 4164

def channel_id
  @channel_id
end

#channel_urlString

The channel's URL. Corresponds to the JSON property channelUrl

Returns:

  • (String)


4169
4170
4171
# File 'generated/google/apis/youtube_v3/classes.rb', line 4169

def channel_url
  @channel_url
end

#display_nameString

The channel's display name. Corresponds to the JSON property displayName

Returns:

  • (String)


4174
4175
4176
# File 'generated/google/apis/youtube_v3/classes.rb', line 4174

def display_name
  @display_name
end

#is_chat_moderatorBoolean Also known as: is_chat_moderator?

Whether the author is a moderator of the live chat. Corresponds to the JSON property isChatModerator

Returns:

  • (Boolean)


4179
4180
4181
# File 'generated/google/apis/youtube_v3/classes.rb', line 4179

def is_chat_moderator
  @is_chat_moderator
end

#is_chat_ownerBoolean Also known as: is_chat_owner?

Whether the author is the owner of the live chat. Corresponds to the JSON property isChatOwner

Returns:

  • (Boolean)


4185
4186
4187
# File 'generated/google/apis/youtube_v3/classes.rb', line 4185

def is_chat_owner
  @is_chat_owner
end

#is_chat_sponsorBoolean Also known as: is_chat_sponsor?

Whether the author is a sponsor of the live chat. Corresponds to the JSON property isChatSponsor

Returns:

  • (Boolean)


4191
4192
4193
# File 'generated/google/apis/youtube_v3/classes.rb', line 4191

def is_chat_sponsor
  @is_chat_sponsor
end

#is_verifiedBoolean Also known as: is_verified?

Whether the author's identity has been verified by YouTube. Corresponds to the JSON property isVerified

Returns:

  • (Boolean)


4197
4198
4199
# File 'generated/google/apis/youtube_v3/classes.rb', line 4197

def is_verified
  @is_verified
end

#profile_image_urlString

The channels's avatar URL. Corresponds to the JSON property profileImageUrl

Returns:

  • (String)


4203
4204
4205
# File 'generated/google/apis/youtube_v3/classes.rb', line 4203

def profile_image_url
  @profile_image_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
# File 'generated/google/apis/youtube_v3/classes.rb', line 4210

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @channel_url = args[:channel_url] if args.key?(:channel_url)
  @display_name = args[:display_name] if args.key?(:display_name)
  @is_chat_moderator = args[:is_chat_moderator] if args.key?(:is_chat_moderator)
  @is_chat_owner = args[:is_chat_owner] if args.key?(:is_chat_owner)
  @is_chat_sponsor = args[:is_chat_sponsor] if args.key?(:is_chat_sponsor)
  @is_verified = args[:is_verified] if args.key?(:is_verified)
  @profile_image_url = args[:profile_image_url] if args.key?(:profile_image_url)
end