class Google::Apis::GamesV1::QuestCriterion
This is a JSON template for a Quest Criterion resource.
Attributes
This is a JSON template for a Quest Criterion Contribution resource. Corresponds to the JSON property `completionContribution` @return [Google::Apis::GamesV1::QuestContribution]
This is a JSON template for a Quest Criterion Contribution resource. Corresponds to the JSON property `currentContribution` @return [Google::Apis::GamesV1::QuestContribution]
The ID of the event the criterion corresponds to. Corresponds to the JSON property `eventId` @return [String]
This is a JSON template for a Quest Criterion Contribution resource. Corresponds to the JSON property `initialPlayerProgress` @return [Google::Apis::GamesV1::QuestContribution]
Uniquely identifies the type of this resource. Value is always the fixed string games#questCriterion. Corresponds to the JSON property `kind` @return [String]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 2937 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 2942 def update!(**args) @completion_contribution = args[:completion_contribution] if args.key?(:completion_contribution) @current_contribution = args[:current_contribution] if args.key?(:current_contribution) @event_id = args[:event_id] if args.key?(:event_id) @initial_player_progress = args[:initial_player_progress] if args.key?(:initial_player_progress) @kind = args[:kind] if args.key?(:kind) end