Class: Google::Apis::AdminDirectoryV1::UserAbout

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb

Overview

JSON template for About (notes) of a user in Directory API.

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) ⇒ UserAbout

Returns a new instance of UserAbout.


2549
2550
2551
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2549

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

Instance Attribute Details

#content_typeString

About entry can have a type which indicates the content type. It can either be plain or html. By default, notes contents are assumed to contain plain text. Corresponds to the JSON property contentType

Returns:

  • (String)

2542
2543
2544
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2542

def content_type
  @content_type
end

#valueString

Actual value of notes. Corresponds to the JSON property value

Returns:

  • (String)

2547
2548
2549
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2547

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2554
2555
2556
2557
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2554

def update!(**args)
  @content_type = args[:content_type] if args.key?(:content_type)
  @value = args[:value] if args.key?(:value)
end