Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3Impression
- Inherits:
-
Object
- Object
- Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3Impression
- 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
Encapsulates impression event details.
Instance Attribute Summary collapse
-
#game_object_type ⇒ Fixnum
An arbitrary, developer-defined type identifier for each type of game object used in your game.
-
#impression_type ⇒ String
Required.
-
#location_name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3Impression
constructor
A new instance of GoogleMapsPlayablelocationsV3Impression.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3Impression
Returns a new instance of GoogleMapsPlayablelocationsV3Impression.
49 50 51 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 49 def initialize(**args) update!(**args) end |
Instance Attribute Details
#game_object_type ⇒ Fixnum
An arbitrary, developer-defined type identifier for each type of game object
used in your game. Since players interact with differ types of game objects in
different ways, this field allows you to segregate impression data by type for
analysis. You should assign a unique game_object_type
ID to represent a
distinct type of game object in your game. For example, 1=monster location, 2=
powerup location.
Corresponds to the JSON property gameObjectType
37 38 39 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 37 def game_object_type @game_object_type end |
#impression_type ⇒ String
Required. The type of impression event.
Corresponds to the JSON property impressionType
42 43 44 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 42 def impression_type @impression_type end |
#location_name ⇒ String
Required. The name of the playable location.
Corresponds to the JSON property locationName
47 48 49 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 47 def location_name @location_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
54 55 56 57 58 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 54 def update!(**args) @game_object_type = args[:game_object_type] if args.key?(:game_object_type) @impression_type = args[:impression_type] if args.key?(:impression_type) @location_name = args[:location_name] if args.key?(:location_name) end |