Class: Google::Apis::ChatV1::User

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb

Overview

A user in Hangouts Chat.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User



895
896
897
# File 'generated/google/apis/chat_v1/classes.rb', line 895

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


883
884
885
# File 'generated/google/apis/chat_v1/classes.rb', line 883

def display_name
  @display_name
end

#nameString

Resource name, in the format "users/*". Corresponds to the JSON property name

Returns:

  • (String)


888
889
890
# File 'generated/google/apis/chat_v1/classes.rb', line 888

def name
  @name
end

#typeString

User type. Corresponds to the JSON property type

Returns:

  • (String)


893
894
895
# File 'generated/google/apis/chat_v1/classes.rb', line 893

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



900
901
902
903
904
# File 'generated/google/apis/chat_v1/classes.rb', line 900

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end