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.
1839 1840 1841 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1839 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
1827 1828 1829 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1827 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
1832 1833 1834 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1832 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
1837 1838 1839 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1837 def observe_start_time @observe_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1844 1845 1846 1847 1848 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1844 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 |