Class: Google::Apis::CloudsearchV1::Name

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

A person's name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Name

Returns a new instance of Name.



14606
14607
14608
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14606

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

Instance Attribute Details

#display_nameString

The read-only display name formatted according to the locale specified by the viewer's account or the Accept-Language HTTP header. Corresponds to the JSON property displayName

Returns:

  • (String)


14604
14605
14606
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14604

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14611
14612
14613
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14611

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