class NewEden::API::Base

Attributes

client[RW]

Public Class Methods

new(client) click to toggle source
# File lib/new_eden/api/base.rb, line 7
def initialize(client)
  @client = client
end

Public Instance Methods

api_call(uri, _opt = {}, ext = '.xml.aspx') click to toggle source
# File lib/new_eden/api/base.rb, line 11
def api_call(uri, _opt = {}, ext = '.xml.aspx')
  resp = @client.get(uri + ext)
  return Hashie::Mash.new(resp.to_h).eveapi
end