Class: Google::Apis::PeopleV1::Source

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

The source of a field.

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

Returns a new instance of Source.



276
277
278
# File 'generated/google/apis/people_v1/classes.rb', line 276

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

Instance Attribute Details

#idString

A unique identifier within the source type generated by the server. Corresponds to the JSON property id

Returns:

  • (String)


274
275
276
# File 'generated/google/apis/people_v1/classes.rb', line 274

def id
  @id
end

#typeString

The source type. Corresponds to the JSON property type

Returns:

  • (String)


269
270
271
# File 'generated/google/apis/people_v1/classes.rb', line 269

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



281
282
283
284
# File 'generated/google/apis/people_v1/classes.rb', line 281

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