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.



778
779
780
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 778

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)


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

def count
  @count
end

#valueObject

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

Returns:

  • (Object)


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