class Minfraud::Model::Insights

Model of the Insights response.

Attributes

billing_address[R]

An object containing minFraud data related to the billing address used in the transaction.

@return [Minfraud::Model::BillingAddress]

credit_card[R]

An object containing minFraud data about the credit card used in the transaction.

@return [Minfraud::Model::CreditCard]

device[R]

This object contains information about the device that MaxMind believes is associated with the IP address passed in the request.

@return [Minfraud::Model::Device]

email[R]

This object contains information about the email address passed in the request.

@return [Minfraud::Model::Email]

ip_address[R]

An object containing GeoIP2 and minFraud Insights information about the geolocated IP address.

@return [Minfraud::Model::IPAddress]

shipping_address[R]

An object containing minFraud data related to the shipping address used in the transaction.

@return [Minfraud::Model::ShippingAddress]

Public Class Methods

new(record, locales) click to toggle source

@!visibility private

Calls superclass method
# File lib/minfraud/model/insights.rb, line 52
def initialize(record, locales)
  super(record, locales)

  @billing_address  = Minfraud::Model::BillingAddress.new(
    get('billing_address')
  )
  @credit_card      = Minfraud::Model::CreditCard.new(get('credit_card'))
  @device           = Minfraud::Model::Device.new(get('device'))
  @email            = Minfraud::Model::Email.new(get('email'))
  @ip_address       = Minfraud::Model::IPAddress.new(get('ip_address'), locales)
  @shipping_address = Minfraud::Model::ShippingAddress.new(
    get('shipping_address')
  )
end