Sha256: b698bedfd97a4bea3a3f795c9122cf17bc6097b113eb6827c8a88785f93b68b6
Contents?: true
Size: 475 Bytes
Versions: 7
Compression:
Stored size: 475 Bytes
Contents
class WargamingApi::Base < WargamingApi::Node include WargamingApi::Util::Uri include WargamingApi::Util::Params include WargamingApi::Util::Http attr_reader :params attr_reader :uri attr_reader :json def initialize(params = {}) @params = prepare_params(params) @uri = api_uri(@params) @json = fetch_data(@uri).with_indifferent_access super(@json[:data]) end def self.fetch(params = {}) self.new(params) end end
Version data entries
7 entries across 7 versions & 1 rubygems