Class: Google::Apis::PeopleV1::ImClient

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/people_v1/classes.rb,
lib/google/apis/people_v1/representations.rb,
lib/google/apis/people_v1/representations.rb

Overview

A person's instant messaging client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImClient

Returns a new instance of ImClient.



1190
1191
1192
# File 'lib/google/apis/people_v1/classes.rb', line 1190

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

Instance Attribute Details

#formatted_protocolString

Output only. The protocol of the IM client formatted in the viewer's account locale or the Accept-Language HTTP header locale. Corresponds to the JSON property formattedProtocol

Returns:

  • (String)


1159
1160
1161
# File 'lib/google/apis/people_v1/classes.rb', line 1159

def formatted_protocol
  @formatted_protocol
end

#formatted_typeString

Output only. The type of the IM client translated and formatted in the viewer' s account locale or the Accept-Language HTTP header locale. Corresponds to the JSON property formattedType

Returns:

  • (String)


1165
1166
1167
# File 'lib/google/apis/people_v1/classes.rb', line 1165

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1170
1171
1172
# File 'lib/google/apis/people_v1/classes.rb', line 1170

def 
  @metadata
end

#protocolString

The protocol of the IM client. The protocol can be custom or one of these predefined values: * aim * msn * yahoo * skype * qq * googleTalk * icq * jabber * netMeeting Corresponds to the JSON property protocol

Returns:

  • (String)


1177
1178
1179
# File 'lib/google/apis/people_v1/classes.rb', line 1177

def protocol
  @protocol
end

#typeString

The type of the IM client. The type can be custom or one of these predefined values: * home * work * other Corresponds to the JSON property type

Returns:

  • (String)


1183
1184
1185
# File 'lib/google/apis/people_v1/classes.rb', line 1183

def type
  @type
end

#usernameString

The user name used in the IM client. Corresponds to the JSON property username

Returns:

  • (String)


1188
1189
1190
# File 'lib/google/apis/people_v1/classes.rb', line 1188

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1195
1196
1197
1198
1199
1200
1201
1202
# File 'lib/google/apis/people_v1/classes.rb', line 1195

def update!(**args)
  @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
  @metadata = args[:metadata] if args.key?(:metadata)
  @protocol = args[:protocol] if args.key?(:protocol)
  @type = args[:type] if args.key?(:type)
  @username = args[:username] if args.key?(:username)
end