Class: Google::Apis::MybusinessqandaV1::Author
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessqandaV1::Author
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessqanda_v1/classes.rb,
lib/google/apis/mybusinessqanda_v1/representations.rb,
lib/google/apis/mybusinessqanda_v1/representations.rb
Overview
Represents the author of a question or answer
Instance Attribute Summary collapse
-
#display_name ⇒ String
The display name of the user Corresponds to the JSON property
displayName
. -
#profile_photo_uri ⇒ String
The profile photo URI of the user.
-
#type ⇒ String
The type of user the author is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Author
constructor
A new instance of Author.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Author
Returns a new instance of Author.
95 96 97 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 95 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The display name of the user
Corresponds to the JSON property displayName
83 84 85 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 83 def display_name @display_name end |
#profile_photo_uri ⇒ String
The profile photo URI of the user.
Corresponds to the JSON property profilePhotoUri
88 89 90 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 88 def profile_photo_uri @profile_photo_uri end |
#type ⇒ String
The type of user the author is.
Corresponds to the JSON property type
93 94 95 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 93 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
100 101 102 103 104 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 100 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @profile_photo_uri = args[:profile_photo_uri] if args.key?(:profile_photo_uri) @type = args[:type] if args.key?(:type) end |