Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickGenericAnswerCard

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickGenericAnswerCard

Returns a new instance of EnterpriseTopazSidekickGenericAnswerCard.



2397
2398
2399
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2397

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

Instance Attribute Details

#answerString

The answer. Corresponds to the JSON property answer

Returns:

  • (String)


2390
2391
2392
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2390

def answer
  @answer
end

#titleString

Title or header of the card. Corresponds to the JSON property title

Returns:

  • (String)


2395
2396
2397
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2395

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2402
2403
2404
2405
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2402

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