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

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

Overview

A person's instant messaging client.

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

Returns a new instance of ImClient



2089
2090
2091
# File 'generated/google/apis/people_v1/classes.rb', line 2089

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

Instance Attribute Details

#formatted_protocolString

The read-only 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)


2081
2082
2083
# File 'generated/google/apis/people_v1/classes.rb', line 2081

def formatted_protocol
  @formatted_protocol
end

#formatted_typeString

The read-only 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)


2087
2088
2089
# File 'generated/google/apis/people_v1/classes.rb', line 2087

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2046
2047
2048
# File 'generated/google/apis/people_v1/classes.rb', line 2046

def 
  @metadata
end

#protocolString

The protocol of the IM client. The protocol can be custom or predefined. Possible values include, but are not limited to, the following:

  • aim
  • msn
  • yahoo
  • skype
  • qq
  • googleTalk
  • icq
  • jabber
  • netMeeting Corresponds to the JSON property protocol

Returns:

  • (String)


2070
2071
2072
# File 'generated/google/apis/people_v1/classes.rb', line 2070

def protocol
  @protocol
end

#typeString

The type of the IM client. The type can be custom or predefined. Possible values include, but are not limited to, the following:

  • home
  • work
  • other Corresponds to the JSON property type

Returns:

  • (String)


2055
2056
2057
# File 'generated/google/apis/people_v1/classes.rb', line 2055

def type
  @type
end

#usernameString

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

Returns:

  • (String)


2075
2076
2077
# File 'generated/google/apis/people_v1/classes.rb', line 2075

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2094
2095
2096
2097
2098
2099
2100
2101
# File 'generated/google/apis/people_v1/classes.rb', line 2094

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