Class: Google::Apis::DatamanagerV1::IpData
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::IpData
- 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
IP address information for a user. We recommend including observe_start_time and observe_end_time to help improve Customer Match match rates.
Instance Attribute Summary collapse
-
#ip_address ⇒ String
Required.
-
#observe_end_time ⇒ String
Optional.
-
#observe_start_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IpData
constructor
A new instance of IpData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IpData
Returns a new instance of IpData.
2017 2018 2019 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2017 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_address ⇒ String
Required. IP address captured at the time of customer interaction. Accepts
standard string formats for both IPv4 and IPv6.
Corresponds to the JSON property ipAddress
2005 2006 2007 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2005 def ip_address @ip_address end |
#observe_end_time ⇒ String
Optional. Last recorded interaction time from this IP address in a session.
Corresponds to the JSON property observeEndTime
2010 2011 2012 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2010 def observe_end_time @observe_end_time end |
#observe_start_time ⇒ String
Optional. First recorded interaction time from this IP address in a session.
Corresponds to the JSON property observeStartTime
2015 2016 2017 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2015 def observe_start_time @observe_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2022 2023 2024 2025 2026 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2022 def update!(**args) @ip_address = args[:ip_address] if args.key?(:ip_address) @observe_end_time = args[:observe_end_time] if args.key?(:observe_end_time) @observe_start_time = args[:observe_start_time] if args.key?(:observe_start_time) end |