Class: Google::Apis::FirebaserulesV1::FunctionCall

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firebaserules_v1/classes.rb,
generated/google/apis/firebaserules_v1/representations.rb,
generated/google/apis/firebaserules_v1/representations.rb

Overview

Represents a service-defined function call that was invoked during test execution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FunctionCall

Returns a new instance of FunctionCall.



155
156
157
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 155

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

Instance Attribute Details

#argsArray<Object>

The arguments that were provided to the function. Corresponds to the JSON property args

Returns:

  • (Array<Object>)


148
149
150
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 148

def args
  @args
end

#functionString

Name of the function invoked. Corresponds to the JSON property function

Returns:

  • (String)


153
154
155
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 153

def function
  @function
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



160
161
162
163
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 160

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