Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3PlayerReport

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/playablelocations_v3/classes.rb,
generated/google/apis/playablelocations_v3/representations.rb,
generated/google/apis/playablelocations_v3/representations.rb

Overview

A report submitted by a player about a playable location that is considered inappropriate for use in the game.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3PlayerReport

Returns a new instance of GoogleMapsPlayablelocationsV3PlayerReport.



190
191
192
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 190

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

Instance Attribute Details

#language_codeString

Language code (in BCP-47 format) indicating the language of the freeform description provided in reason_details. Examples are "en", "en-US" or "ja- Latn". For more information, see http://www.unicode.org/reports/tr35/# Unicode_locale_identifier. Corresponds to the JSON property languageCode

Returns:

  • (String)


172
173
174
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 172

def language_code
  @language_code
end

#location_nameString

Required. The name of the playable location. Corresponds to the JSON property locationName

Returns:

  • (String)


177
178
179
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 177

def location_name
  @location_name
end

#reason_detailsString

Required. A free-form description detailing why the playable location is considered bad. Corresponds to the JSON property reasonDetails

Returns:

  • (String)


183
184
185
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 183

def reason_details
  @reason_details
end

#reasonsArray<String>

Required. One or more reasons why this playable location is considered bad. Corresponds to the JSON property reasons

Returns:

  • (Array<String>)


188
189
190
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 188

def reasons
  @reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



195
196
197
198
199
200
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 195

def update!(**args)
  @language_code = args[:language_code] if args.key?(:language_code)
  @location_name = args[:location_name] if args.key?(:location_name)
  @reason_details = args[:reason_details] if args.key?(:reason_details)
  @reasons = args[:reasons] if args.key?(:reasons)
end