Class: Google::Apis::FirebaserulesV1::Arg

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

Arg matchers for the mock function.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Arg

Returns a new instance of Arg.



43
44
45
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 43

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

Instance Attribute Details

#any_valueGoogle::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 propertyanyValue`



36
37
38
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 36

def any_value
  @any_value
end

#exact_valueObject

Argument exactly matches value provided. Corresponds to the JSON property exactValue

Returns:

  • (Object)


41
42
43
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 41

def exact_value
  @exact_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48
49
50
51
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 48

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