Class: Google::Apis::FirebaserulesV1::ValueCount
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::ValueCount
- 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
-
#count ⇒ Fixnum
The amount of times that expression returned.
-
#value ⇒ Object
The return value of the expression Corresponds to the JSON property
value
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ValueCount
constructor
A new instance of ValueCount.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#count ⇒ Fixnum
The amount of times that expression returned.
Corresponds to the JSON property count
780 781 782 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 780 def count @count end |
#value ⇒ Object
The return value of the expression
Corresponds to the JSON property value
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 |