class ShippingEasy::Http::FaradayAdapter::CustomUserAgent
Public Class Methods
new(app, agent_string)
click to toggle source
Calls superclass method
# File lib/shipping_easy/http/faraday_adapter.rb, line 41 def initialize(app, agent_string) super(app) @agent_string = agent_string end
Public Instance Methods
call(env)
click to toggle source
# File lib/shipping_easy/http/faraday_adapter.rb, line 46 def call(env) env[:request_headers]['User-Agent'] = @agent_string @app.call(env) end