Class: Google::Apis::PlusV1::Activity::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

The person who performed this activity.

Defined Under Namespace

Classes: ClientSpecificActorInfo, Image, Name, 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



236
237
238
# File 'generated/google/apis/plus_v1/classes.rb', line 236

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

Instance Attribute Details

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

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



204
205
206
# File 'generated/google/apis/plus_v1/classes.rb', line 204

def client_specific_actor_info
  @client_specific_actor_info
end

#display_nameString

The name of the actor, suitable for display. Corresponds to the JSON property displayName

Returns:

  • (String)


209
210
211
# File 'generated/google/apis/plus_v1/classes.rb', line 209

def display_name
  @display_name
end

#idString

The ID of the actor's Person resource. Corresponds to the JSON property id

Returns:

  • (String)


214
215
216
# File 'generated/google/apis/plus_v1/classes.rb', line 214

def id
  @id
end

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

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



219
220
221
# File 'generated/google/apis/plus_v1/classes.rb', line 219

def image
  @image
end

#nameGoogle::Apis::PlusV1::Activity::Actor::Name

An object representation of the individual components of name. Corresponds to the JSON property name



224
225
226
# File 'generated/google/apis/plus_v1/classes.rb', line 224

def name
  @name
end

#urlString

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

Returns:

  • (String)


229
230
231
# File 'generated/google/apis/plus_v1/classes.rb', line 229

def url
  @url
end

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

Verification status of actor. Corresponds to the JSON property verification



234
235
236
# File 'generated/google/apis/plus_v1/classes.rb', line 234

def verification
  @verification
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



241
242
243
244
245
246
247
248
249
# File 'generated/google/apis/plus_v1/classes.rb', line 241

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)
  @name = args[:name] if args.key?(:name)
  @url = args[:url] if args.key?(:url)
  @verification = args[:verification] if args.key?(:verification)
end