Class: Google::Apis::GamesV1::StatsResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::StatsResponse
- 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
A third party stats resource.
Instance Attribute Summary collapse
-
#avg_session_length_minutes ⇒ Float
Average session length in minutes of the player.
-
#churn_probability ⇒ Float
The probability of the player not returning to play the game in the next day.
-
#days_since_last_played ⇒ Fixnum
Number of days since the player last played this game.
-
#high_spender_probability ⇒ Float
The probability of the player going to spend beyond a threshold amount of money.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#num_purchases ⇒ Fixnum
Number of in-app purchases made by the player in this game.
-
#num_sessions ⇒ Fixnum
The approximate number of sessions of the player within the last 28 days, where a session begins when the player is connected to Play Games Services and ends when they are disconnected.
-
#num_sessions_percentile ⇒ Float
The approximation of the sessions percentile of the player within the last 30 days, where a session begins when the player is connected to Play Games Services and ends when they are disconnected.
-
#spend_percentile ⇒ Float
The approximate spend percentile of the player in this game.
-
#spend_probability ⇒ Float
The probability of the player going to spend the game in the next seven days.
-
#total_spend_next_28_days ⇒ Float
The predicted amount of money that the player going to spend in the next 28 days.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StatsResponse
constructor
A new instance of StatsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StatsResponse
Returns a new instance of StatsResponse.
2958 2959 2960 |
# File 'generated/google/apis/games_v1/classes.rb', line 2958 def initialize(**args) update!(**args) end |
Instance Attribute Details
#avg_session_length_minutes ⇒ Float
Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not
populated if there is not enough information.
Corresponds to the JSON property avg_session_length_minutes
2891 2892 2893 |
# File 'generated/google/apis/games_v1/classes.rb', line 2891 def avg_session_length_minutes @avg_session_length_minutes end |
#churn_probability ⇒ Float
The probability of the player not returning to play the game in the next day.
E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough information.
Corresponds to the JSON property churn_probability
2897 2898 2899 |
# File 'generated/google/apis/games_v1/classes.rb', line 2897 def churn_probability @churn_probability end |
#days_since_last_played ⇒ Fixnum
Number of days since the player last played this game. E.g., 0, 1, 5, 10, ... .
Not populated if there is not enough information.
Corresponds to the JSON property days_since_last_played
2903 2904 2905 |
# File 'generated/google/apis/games_v1/classes.rb', line 2903 def days_since_last_played @days_since_last_played end |
#high_spender_probability ⇒ Float
The probability of the player going to spend beyond a threshold amount of
money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
information.
Corresponds to the JSON property high_spender_probability
2910 2911 2912 |
# File 'generated/google/apis/games_v1/classes.rb', line 2910 def high_spender_probability @high_spender_probability end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#statsResponse
.
Corresponds to the JSON property kind
2916 2917 2918 |
# File 'generated/google/apis/games_v1/classes.rb', line 2916 def kind @kind end |
#num_purchases ⇒ Fixnum
Number of in-app purchases made by the player in this game. E.g., 0, 1, 5, 10,
... . Not populated if there is not enough information.
Corresponds to the JSON property num_purchases
2922 2923 2924 |
# File 'generated/google/apis/games_v1/classes.rb', line 2922 def num_purchases @num_purchases end |
#num_sessions ⇒ Fixnum
The approximate number of sessions of the player within the last 28 days,
where a session begins when the player is connected to Play Games Services and
ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated if
there is not enough information.
Corresponds to the JSON property num_sessions
2930 2931 2932 |
# File 'generated/google/apis/games_v1/classes.rb', line 2930 def num_sessions @num_sessions end |
#num_sessions_percentile ⇒ Float
The approximation of the sessions percentile of the player within the last 30
days, where a session begins when the player is connected to Play Games
Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not
populated if there is not enough information.
Corresponds to the JSON property num_sessions_percentile
2938 2939 2940 |
# File 'generated/google/apis/games_v1/classes.rb', line 2938 def num_sessions_percentile @num_sessions_percentile end |
#spend_percentile ⇒ Float
The approximate spend percentile of the player in this game. E.g., 0, 0.25, 0.
5, 0.75. Not populated if there is not enough information.
Corresponds to the JSON property spend_percentile
2944 2945 2946 |
# File 'generated/google/apis/games_v1/classes.rb', line 2944 def spend_percentile @spend_percentile end |
#spend_probability ⇒ Float
The probability of the player going to spend the game in the next seven days.
E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough information.
Corresponds to the JSON property spend_probability
2950 2951 2952 |
# File 'generated/google/apis/games_v1/classes.rb', line 2950 def spend_probability @spend_probability end |
#total_spend_next_28_days ⇒ Float
The predicted amount of money that the player going to spend in the next 28
days. E.g., 1, 30, 60, ... . Not populated if there is not enough information.
Corresponds to the JSON property total_spend_next_28_days
2956 2957 2958 |
# File 'generated/google/apis/games_v1/classes.rb', line 2956 def total_spend_next_28_days @total_spend_next_28_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 |
# File 'generated/google/apis/games_v1/classes.rb', line 2963 def update!(**args) @avg_session_length_minutes = args[:avg_session_length_minutes] if args.key?(:avg_session_length_minutes) @churn_probability = args[:churn_probability] if args.key?(:churn_probability) @days_since_last_played = args[:days_since_last_played] if args.key?(:days_since_last_played) @high_spender_probability = args[:high_spender_probability] if args.key?(:high_spender_probability) @kind = args[:kind] if args.key?(:kind) @num_purchases = args[:num_purchases] if args.key?(:num_purchases) @num_sessions = args[:num_sessions] if args.key?(:num_sessions) @num_sessions_percentile = args[:num_sessions_percentile] if args.key?(:num_sessions_percentile) @spend_percentile = args[:spend_percentile] if args.key?(:spend_percentile) @spend_probability = args[:spend_probability] if args.key?(:spend_probability) @total_spend_next_28_days = args[:total_spend_next_28_days] if args.key?(:total_spend_next_28_days) end |