class Google::Apis::GamesV1::QuestCriterion

This is a JSON template for a Quest Criterion resource.

Attributes

completion_contribution[RW]

This is a JSON template for a Quest Criterion Contribution resource. Corresponds to the JSON property `completionContribution` @return [Google::Apis::GamesV1::QuestContribution]

current_contribution[RW]

This is a JSON template for a Quest Criterion Contribution resource. Corresponds to the JSON property `currentContribution` @return [Google::Apis::GamesV1::QuestContribution]

event_id[RW]

The ID of the event the criterion corresponds to. Corresponds to the JSON property `eventId` @return [String]

initial_player_progress[RW]

This is a JSON template for a Quest Criterion Contribution resource. Corresponds to the JSON property `initialPlayerProgress` @return [Google::Apis::GamesV1::QuestContribution]

kind[RW]

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

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 2937
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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