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.



6881
6882
6883
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6881

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)


6874
6875
6876
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6874

def error_message
  @error_message
end

#valueObject

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

Returns:

  • (Object)


6879
6880
6881
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6879

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6886
6887
6888
6889
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6886

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