Class: Google::Apis::GamesV1::AggregateStats
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::AggregateStats
 
- 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
- 
  
    
      #count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The number of messages sent between a pair of peers. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #max  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The maximum amount. 
- 
  
    
      #min  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The minimum amount. 
- 
  
    
      #sum  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The total number of bytes sent for messages between a pair of peers. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AggregateStats 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AggregateStats. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#count ⇒ Fixnum
The number of messages sent between a pair of peers.
Corresponds to the JSON property count
| 452 453 454 | # File 'generated/google/apis/games_v1/classes.rb', line 452 def count @count end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#aggregateStats.
Corresponds to the JSON property kind
| 458 459 460 | # File 'generated/google/apis/games_v1/classes.rb', line 458 def kind @kind end | 
#max ⇒ Fixnum
The maximum amount.
Corresponds to the JSON property max
| 463 464 465 | # File 'generated/google/apis/games_v1/classes.rb', line 463 def max @max end | 
#min ⇒ Fixnum
The minimum amount.
Corresponds to the JSON property min
| 468 469 470 | # File 'generated/google/apis/games_v1/classes.rb', line 468 def min @min end | 
#sum ⇒ Fixnum
The total number of bytes sent for messages between a pair of peers.
Corresponds to the JSON property sum
| 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 |