Module: Bitex::WithUserAgent

Included in:
Api
Defined in:
lib/bitex_bot.rb

Overview

Set bitex-bot user-agent on request.

Instance Method Summary collapse

Instance Method Details

#grab_curlObject



37
38
39
# File 'lib/bitex_bot.rb', line 37

def grab_curl
  super.tap { |curl| curl.headers['User-Agent'] = BitexBot.user_agent }
end