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.



2364
2365
2366
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2364

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

Instance Attribute Details

#answerString

The answer. Corresponds to the JSON property answer

Returns:

  • (String)


2357
2358
2359
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2357

def answer
  @answer
end

#titleString

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

Returns:

  • (String)


2362
2363
2364
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2362

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2369
2370
2371
2372
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2369

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