Class: Google::Apis::GamesV1::AggregateStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb

Overview

This is a JSON template for aggregate stats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AggregateStats

Returns a new instance of AggregateStats



475
476
477
# File 'generated/google/apis/games_v1/classes.rb', line 475

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

Instance Attribute Details

#countFixnum

The number of messages sent between a pair of peers. Corresponds to the JSON property count

Returns:

  • (Fixnum)


452
453
454
# File 'generated/google/apis/games_v1/classes.rb', line 452

def count
  @count
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats. Corresponds to the JSON property kind

Returns:

  • (String)


458
459
460
# File 'generated/google/apis/games_v1/classes.rb', line 458

def kind
  @kind
end

#maxFixnum

The maximum amount. Corresponds to the JSON property max

Returns:

  • (Fixnum)


463
464
465
# File 'generated/google/apis/games_v1/classes.rb', line 463

def max
  @max
end

#minFixnum

The minimum amount. Corresponds to the JSON property min

Returns:

  • (Fixnum)


468
469
470
# File 'generated/google/apis/games_v1/classes.rb', line 468

def min
  @min
end

#sumFixnum

The total number of bytes sent for messages between a pair of peers. Corresponds to the JSON property sum

Returns:

  • (Fixnum)


473
474
475
# File 'generated/google/apis/games_v1/classes.rb', line 473

def sum
  @sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



480
481
482
483
484
485
486
# File 'generated/google/apis/games_v1/classes.rb', line 480

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @kind = args[:kind] if args.key?(:kind)
  @max = args[:max] if args.key?(:max)
  @min = args[:min] if args.key?(:min)
  @sum = args[:sum] if args.key?(:sum)
end