Class: Google::Apis::PlusDomainsV1::Activity::Object::Actor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_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



482
483
484
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 482

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

Instance Attribute Details

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

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



455
456
457
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 455

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)


460
461
462
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 460

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)


465
466
467
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 465

def id
  @id
end

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

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



470
471
472
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 470

def image
  @image
end

#urlString

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

Returns:

  • (String)


475
476
477
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 475

def url
  @url
end

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

Verification status of actor. Corresponds to the JSON property verification



480
481
482
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 480

def verification
  @verification
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



487
488
489
490
491
492
493
494
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 487

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