Class: Google::Apis::GamesV1::QuestContribution
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::QuestContribution
- 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 a Quest Criterion Contribution resource.
Instance Attribute Summary collapse
-
#formatted_value ⇒ String
The formatted value of the contribution as a string.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#value ⇒ Fixnum
The value of the contribution.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuestContribution
constructor
A new instance of QuestContribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QuestContribution
Returns a new instance of QuestContribution
2930 2931 2932 |
# File 'generated/google/apis/games_v1/classes.rb', line 2930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_value ⇒ String
The formatted value of the contribution as a string. Format depends on the
configuration for the associated event definition in the Play Games Developer
Console.
Corresponds to the JSON property formattedValue
2917 2918 2919 |
# File 'generated/google/apis/games_v1/classes.rb', line 2917 def formatted_value @formatted_value end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#questContribution.
Corresponds to the JSON property kind
2923 2924 2925 |
# File 'generated/google/apis/games_v1/classes.rb', line 2923 def kind @kind end |
#value ⇒ Fixnum
The value of the contribution.
Corresponds to the JSON property value
2928 2929 2930 |
# File 'generated/google/apis/games_v1/classes.rb', line 2928 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2935 2936 2937 2938 2939 |
# File 'generated/google/apis/games_v1/classes.rb', line 2935 def update!(**args) @formatted_value = args[:formatted_value] if args.key?(:formatted_value) @kind = args[:kind] if args.key?(:kind) @value = args[:value] if args.key?(:value) end |