Class: Google::Apis::MybusinessqandaV1::Author

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

The display name of the user Corresponds to the JSON property displayName

Returns:

  • (String)


83
84
85
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 83

def display_name
  @display_name
end

#profile_photo_uriString

The profile photo URI of the user. Corresponds to the JSON property profilePhotoUri

Returns:

  • (String)


88
89
90
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 88

def profile_photo_uri
  @profile_photo_uri
end

#typeString

The type of user the author is. Corresponds to the JSON property type

Returns:

  • (String)


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