Class: Google::Apis::DatamanagerV1::EventLocation
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::EventLocation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamanager_v1/classes.rb,
lib/google/apis/datamanager_v1/representations.rb,
lib/google/apis/datamanager_v1/representations.rb
Overview
The location where the event occurred.
Instance Attribute Summary collapse
-
#city ⇒ String
Optional.
-
#continent_code ⇒ String
Optional.
-
#region_code ⇒ String
Optional.
-
#store_id ⇒ String
Optional.
-
#subcontinent_code ⇒ String
Optional.
-
#subdivision_code ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventLocation
constructor
A new instance of EventLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventLocation
Returns a new instance of EventLocation.
1178 1179 1180 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1178 def initialize(**args) update!(**args) end |
Instance Attribute Details
#city ⇒ String
Optional. The name of the city where the event occurred.
Corresponds to the JSON property city
1150 1151 1152 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1150 def city @city end |
#continent_code ⇒ String
Optional. The continent code in UN M49 format where the event occurred.
Corresponds to the JSON property continentCode
1155 1156 1157 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1155 def continent_code @continent_code end |
#region_code ⇒ String
Optional. The 2-letter CLDR region code of the user's address.
Corresponds to the JSON property regionCode
1160 1161 1162 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1160 def region_code @region_code end |
#store_id ⇒ String
Optional. Required for Store Sales. The identifier to represent a physical
store where the event happened.
Corresponds to the JSON property storeId
1166 1167 1168 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1166 def store_id @store_id end |
#subcontinent_code ⇒ String
Optional. The subcontinent code in UN M49 format where the event occurred.
Corresponds to the JSON property subcontinentCode
1171 1172 1173 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1171 def subcontinent_code @subcontinent_code end |
#subdivision_code ⇒ String
Optional. The ISO 3166-2 subdivision code where the event occurred.
Corresponds to the JSON property subdivisionCode
1176 1177 1178 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1176 def subdivision_code @subdivision_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1183 1184 1185 1186 1187 1188 1189 1190 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1183 def update!(**args) @city = args[:city] if args.key?(:city) @continent_code = args[:continent_code] if args.key?(:continent_code) @region_code = args[:region_code] if args.key?(:region_code) @store_id = args[:store_id] if args.key?(:store_id) @subcontinent_code = args[:subcontinent_code] if args.key?(:subcontinent_code) @subdivision_code = args[:subdivision_code] if args.key?(:subdivision_code) end |