Class: Google::Apis::DatamanagerV1::IpData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_addressString

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

Returns:

  • (String)


2005
2006
2007
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2005

def ip_address
  @ip_address
end

#observe_end_timeString

Optional. Last recorded interaction time from this IP address in a session. Corresponds to the JSON property observeEndTime

Returns:

  • (String)


2010
2011
2012
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2010

def observe_end_time
  @observe_end_time
end

#observe_start_timeString

Optional. First recorded interaction time from this IP address in a session. Corresponds to the JSON property observeStartTime

Returns:

  • (String)


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