Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3PlayerReport
- Inherits:
-
Object
- Object
- Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3PlayerReport
- 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
-
#language_code ⇒ String
Language code (in BCP-47 format) indicating the language of the freeform description provided in
reason_details
. -
#location_name ⇒ String
Required.
-
#reason_details ⇒ String
Required.
-
#reasons ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3PlayerReport
constructor
A new instance of GoogleMapsPlayablelocationsV3PlayerReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
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
172 173 174 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 172 def language_code @language_code end |
#location_name ⇒ String
Required. The name of the playable location.
Corresponds to the JSON property locationName
177 178 179 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 177 def location_name @location_name end |
#reason_details ⇒ String
Required. A free-form description detailing why the playable location is
considered bad.
Corresponds to the JSON property reasonDetails
183 184 185 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 183 def reason_details @reason_details end |
#reasons ⇒ Array<String>
Required. One or more reasons why this playable location is considered bad.
Corresponds to the JSON property reasons
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 |