Class: Google::Apis::FirebaserulesV1::ValueCount

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

Tuple for how many times an Expression was evaluated to a particular ExpressionValue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValueCount

Returns a new instance of ValueCount.



787
788
789
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 787

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

Instance Attribute Details

#countFixnum

The amount of times that expression returned. Corresponds to the JSON property count

Returns:

  • (Fixnum)


780
781
782
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 780

def count
  @count
end

#valueObject

The return value of the expression Corresponds to the JSON property value

Returns:

  • (Object)


785
786
787
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 785

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



792
793
794
795
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 792

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