class Auchandirect::ScrAPI::Agent
Helper class for common code around mechanize agents
Public Class Methods
configure(agent)
click to toggle source
Initializes agent with the auchandirect cookie for both items and cart apis.
# File lib/auchandirect/scrAPI/agent.rb, line 29 def self.configure(agent) agent.cookie_jar << Mechanize::Cookie.new(domain: '.auchandirect.fr', name: 'prehomemobile', value: 'prehomemobile', path: '/') end