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



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

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)


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

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)


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

def kind
  @kind
end

#valueFixnum

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

Returns:

  • (Fixnum)


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