Class: Google::Apis::PlusV1::Comment::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 posted this comment.

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.


1084
1085
1086
# File 'generated/google/apis/plus_v1/classes.rb', line 1084

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

Instance Attribute Details

#client_specific_actor_infoGoogle::Apis::PlusV1::Comment::Actor::ClientSpecificActorInfo

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


1057
1058
1059
# File 'generated/google/apis/plus_v1/classes.rb', line 1057

def client_specific_actor_info
  @client_specific_actor_info
end

#display_nameString

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

Returns:

  • (String)

1062
1063
1064
# File 'generated/google/apis/plus_v1/classes.rb', line 1062

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)

1067
1068
1069
# File 'generated/google/apis/plus_v1/classes.rb', line 1067

def id
  @id
end

#imageGoogle::Apis::PlusV1::Comment::Actor::Image

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


1072
1073
1074
# File 'generated/google/apis/plus_v1/classes.rb', line 1072

def image
  @image
end

#urlString

A link to the Person resource for this actor. Corresponds to the JSON property url

Returns:

  • (String)

1077
1078
1079
# File 'generated/google/apis/plus_v1/classes.rb', line 1077

def url
  @url
end

#verificationGoogle::Apis::PlusV1::Comment::Actor::Verification

Verification status of actor. Corresponds to the JSON property verification


1082
1083
1084
# File 'generated/google/apis/plus_v1/classes.rb', line 1082

def verification
  @verification
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1089
1090
1091
1092
1093
1094
1095
1096
# File 'generated/google/apis/plus_v1/classes.rb', line 1089

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