Class: Google::Apis::FirebaserulesV1::ValueCount
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::ValueCount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaserules_v1/classes.rb,
lib/google/apis/firebaserules_v1/representations.rb,
lib/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.
778 779 780 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 778 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
The amount of times that expression returned.
Corresponds to the JSON property count
771 772 773 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 771 def count @count end |
#value ⇒ Object
The return value of the expression
Corresponds to the JSON property value
776 777 778 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 776 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
783 784 785 786 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 783 def update!(**args) @count = args[:count] if args.key?(:count) @value = args[:value] if args.key?(:value) end |