Class: Google::Apis::PeopleV1::SipAddress

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 SIP address. Session Initial Protocol addresses are used for VoIP communications to make voice or video calls over the internet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SipAddress

Returns a new instance of SipAddress.



2366
2367
2368
# File 'lib/google/apis/people_v1/classes.rb', line 2366

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

Instance Attribute Details

#formatted_typeString

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

Returns:

  • (String)


2347
2348
2349
# File 'lib/google/apis/people_v1/classes.rb', line 2347

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2352
2353
2354
# File 'lib/google/apis/people_v1/classes.rb', line 2352

def 
  @metadata
end

#typeString

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

Returns:

  • (String)


2358
2359
2360
# File 'lib/google/apis/people_v1/classes.rb', line 2358

def type
  @type
end

#valueString

The SIP address in the RFC 3261 19.1 SIP URI format. Corresponds to the JSON property value

Returns:

  • (String)


2364
2365
2366
# File 'lib/google/apis/people_v1/classes.rb', line 2364

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2371
2372
2373
2374
2375
2376
# File 'lib/google/apis/people_v1/classes.rb', line 2371

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