Class: Google::Apis::GamesV1::PlayerScore
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::PlayerScore
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb
Overview
A player score.
Instance Attribute Summary collapse
-
#formatted_score ⇒ String
The formatted score for this player score.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#score ⇒ Fixnum
The numerical value for this player score.
-
#score_tag ⇒ String
Additional information about this score.
-
#time_span ⇒ String
The time span for this player score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlayerScore
constructor
A new instance of PlayerScore.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlayerScore
Returns a new instance of PlayerScore.
2156 2157 2158 |
# File 'lib/google/apis/games_v1/classes.rb', line 2156 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_score ⇒ String
The formatted score for this player score.
Corresponds to the JSON property formattedScore
2132 2133 2134 |
# File 'lib/google/apis/games_v1/classes.rb', line 2132 def formatted_score @formatted_score end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#playerScore.
Corresponds to the JSON property kind
2138 2139 2140 |
# File 'lib/google/apis/games_v1/classes.rb', line 2138 def kind @kind end |
#score ⇒ Fixnum
The numerical value for this player score.
Corresponds to the JSON property score
2143 2144 2145 |
# File 'lib/google/apis/games_v1/classes.rb', line 2143 def score @score end |
#score_tag ⇒ String
Additional information about this score. Values will contain no more than 64
URI-safe characters as defined by section 2.3 of RFC 3986.
Corresponds to the JSON property scoreTag
2149 2150 2151 |
# File 'lib/google/apis/games_v1/classes.rb', line 2149 def score_tag @score_tag end |
#time_span ⇒ String
The time span for this player score.
Corresponds to the JSON property timeSpan
2154 2155 2156 |
# File 'lib/google/apis/games_v1/classes.rb', line 2154 def time_span @time_span end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2161 2162 2163 2164 2165 2166 2167 |
# File 'lib/google/apis/games_v1/classes.rb', line 2161 def update!(**args) @formatted_score = args[:formatted_score] if args.key?(:formatted_score) @kind = args[:kind] if args.key?(:kind) @score = args[:score] if args.key?(:score) @score_tag = args[:score_tag] if args.key?(:score_tag) @time_span = args[:time_span] if args.key?(:time_span) end |