Sha256: a2fab15f9acbbd83734c01e33547e919591816b7d0527f63375dd32ac9456814
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
require 'open-uri' module EveOnline class Base def url raise NotImplementedError end def user_agent @user_agent ||= "EveOnline API (https://github.com/biow0lf/eve_online) v#{ EveOnline::VERSION }" end def content @content ||= open(url, open_timeout: 60, read_timeout: 60, 'User-Agent' => user_agent).read end def response @response ||= parser.parse(content) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.7.0 | lib/eve_online/base.rb |