Class: Google::Apis::FirebaserulesV1::Result

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

Possible result values from the function mock invocation.

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) ⇒ Result

Returns a new instance of Result



390
391
392
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 390

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

Instance Attribute Details

#undefinedGoogle::Apis::FirebaserulesV1::Empty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); The JSON representation for Empty is empty JSON object ```. Corresponds to the JSON propertyundefined`



382
383
384
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 382

def undefined
  @undefined
end

#valueObject

The result is an actual value. The type of the value must match that of the type declared by the service. Corresponds to the JSON property value

Returns:

  • (Object)


388
389
390
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 388

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



395
396
397
398
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 395

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