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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValueCount

Returns a new instance of ValueCount.



770
771
772
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 770

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)


763
764
765
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 763

def count
  @count
end

#valueObject

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

Returns:

  • (Object)


768
769
770
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 768

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



775
776
777
778
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 775

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