Class: Google::Apis::PlusV1::Activity::Object::Actor

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

Overview

If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor.

Defined Under Namespace

Classes: ClientSpecificActorInfo, Image, Verification

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

Returns a new instance of Actor



469
470
471
# File 'generated/google/apis/plus_v1/classes.rb', line 469

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

Instance Attribute Details

#client_specific_actor_infoGoogle::Apis::PlusV1::Activity::Object::Actor::ClientSpecificActorInfo

Actor info specific to particular clients. Corresponds to the JSON property clientSpecificActorInfo



442
443
444
# File 'generated/google/apis/plus_v1/classes.rb', line 442

def client_specific_actor_info
  @client_specific_actor_info
end

#display_nameString

The original actor's name, which is suitable for display. Corresponds to the JSON property displayName

Returns:

  • (String)


447
448
449
# File 'generated/google/apis/plus_v1/classes.rb', line 447

def display_name
  @display_name
end

#idString

ID of the original actor. Corresponds to the JSON property id

Returns:

  • (String)


452
453
454
# File 'generated/google/apis/plus_v1/classes.rb', line 452

def id
  @id
end

#imageGoogle::Apis::PlusV1::Activity::Object::Actor::Image

The image representation of the original actor. Corresponds to the JSON property image



457
458
459
# File 'generated/google/apis/plus_v1/classes.rb', line 457

def image
  @image
end

#urlString

A link to the original actor's Google profile. Corresponds to the JSON property url

Returns:

  • (String)


462
463
464
# File 'generated/google/apis/plus_v1/classes.rb', line 462

def url
  @url
end

#verificationGoogle::Apis::PlusV1::Activity::Object::Actor::Verification

Verification status of actor. Corresponds to the JSON property verification



467
468
469
# File 'generated/google/apis/plus_v1/classes.rb', line 467

def verification
  @verification
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



474
475
476
477
478
479
480
481
# File 'generated/google/apis/plus_v1/classes.rb', line 474

def update!(**args)
  @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @image = args[:image] if args.key?(:image)
  @url = args[:url] if args.key?(:url)
  @verification = args[:verification] if args.key?(:verification)
end