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.



6945
6946
6947
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6945

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)


6938
6939
6940
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6938

def error_message
  @error_message
end

#valueObject

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

Returns:

  • (Object)


6943
6944
6945
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6943

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6950
6951
6952
6953
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6950

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