class Falsify::ClientDetails

Information about the browser that the customer used when they placed their order.

Attributes

accept_language[RW]

The languages and locales that the browser understands. @return [String]

browser_height[RW]

The browser screen height in pixels, if available. @return [Integer]

browser_ip[RW]

The browser IP address. @return [String]

browser_width[RW]

The browser screen width in pixels, if available. @return [Integer]

session_hash[RW]

A hash of the session. @return [String]

user_agent[RW]

Details of the browsing client, including software and operating versions. @return [String]

Public Instance Methods

create_from_hash(hash) click to toggle source

@param hash [Hash] @return [ClientDetails]

# File lib/falsify/models/order/client_details.rb, line 25
def create_from_hash(hash)
  cd = ClientDetails.new
  cd.accept_language = hash[:accept_language]
  cd.browser_height = hash[:browser_height]
  cd.browser_ip = hash[:browser_ip]
  cd.browser_width = hash[:browser_width]
  cd.session_hash = hash[:session_hash]
  cd.user_agent = hash[:user_agent]
  return cd
end