class Google::Apis::ChatV1::Membership

Represents a membership relation in Hangouts Chat.

Attributes

create_time[RW]

The creation time of the membership a.k.a the time at which the member joined the space, if applicable. Corresponds to the JSON property `createTime` @return [String]

member[RW]

A user in Google Chat. Corresponds to the JSON property `member` @return [Google::Apis::ChatV1::User]

name[RW]

Corresponds to the JSON property `name` @return [String]

state[RW]

State of the membership. Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 2356
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/chat_v1/classes.rb, line 2361
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @member = args[:member] if args.key?(:member)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end