Class: Google::Apis::GamesV1::QuestContribution

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QuestContribution

Returns a new instance of QuestContribution.



2929
2930
2931
# File 'generated/google/apis/games_v1/classes.rb', line 2929

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#formatted_valueString

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

Returns:

  • (String)


2916
2917
2918
# File 'generated/google/apis/games_v1/classes.rb', line 2916

def formatted_value
  @formatted_value
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#questContribution. Corresponds to the JSON property kind

Returns:

  • (String)


2922
2923
2924
# File 'generated/google/apis/games_v1/classes.rb', line 2922

def kind
  @kind
end

#valueString

The value of the contribution. Corresponds to the JSON property value

Returns:

  • (String)


2927
2928
2929
# File 'generated/google/apis/games_v1/classes.rb', line 2927

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2934
2935
2936
2937
2938
# File 'generated/google/apis/games_v1/classes.rb', line 2934

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