Class: Google::Apis::CloudsearchV1::CustomFunctionReturnValueMarkup

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

The result of a user running a custom function.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomFunctionReturnValueMarkup

Returns a new instance of CustomFunctionReturnValueMarkup.



6557
6558
6559
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6557

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

Instance Attribute Details

#error_messageString

The error message to show to the user if something went wrong. Corresponds to the JSON property errorMessage

Returns:

  • (String)


6550
6551
6552
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6550

def error_message
  @error_message
end

#valueObject

The value that resulted from running the custom function. Corresponds to the JSON property value

Returns:

  • (Object)


6555
6556
6557
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6555

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6562
6563
6564
6565
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6562

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