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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ UserAbout

Returns a new instance of UserAbout.



4819
4820
4821
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4819

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)


4812
4813
4814
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4812

def content_type
  @content_type
end

#valueString

Actual value of notes. Corresponds to the JSON property value

Returns:

  • (String)


4817
4818
4819
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4817

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4824
4825
4826
4827
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4824

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