class Eve::Api::Client::Crest
Attributes
crest_response[R]
parsed_crest_response[R]
Public Class Methods
new()
click to toggle source
# File lib/eve/api/client/crest.rb, line 7 def initialize @crest_root_url = "http://public-crest.eveonline.com" @crest_response = HTTParty.get(@crest_root_url) @parsed_crest_response= JSON.parse(@crest_response.body) end
Public Instance Methods
alliances()
click to toggle source
# File lib/eve/api/client/crest.rb, line 42 def alliances JSON.parse(HTTParty.get(parsed_crest_response["alliances"]["href"])) end
auth_endpoint()
click to toggle source
# File lib/eve/api/client/crest.rb, line 46 def auth_endpoint HTTParty.get(parsed_crest_response["authEndpoint"]["href"]) end
battle_theatres()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 50 def battle_theatres JSON.parse(HTTParty.get(parsed_crest_response["battleTheatres"]["href"])) end
bloodlines()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 75 def bloodlines JSON.parse(HTTParty.get(parsed_crest_response["bloodlines"]["href"])) end
channels()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 33 def channels JSON.parse(HTTParty.get(parsed_crest_response["channels"]["href"])) end
corporation_roles()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 28 def corporation_roles JSON.parse(HTTParty.get(parsed_crest_response["corporationRoles"]["href"])) end
corporations()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 38 def corporations JSON.parse(HTTParty.get(parsed_crest_response["corporations"]["href"])) end
decode()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 70 def decode JSON.parse(HTTParty.get(parsed_crest_response["decode"]["href"])) end
incursions()
click to toggle source
# File lib/eve/api/client/crest.rb, line 97 def incursions JSON.parse(HTTParty.get(parsed_crest_response["incursions"]["href"])) end
item_types()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 59 def item_types JSON.parse(HTTParty.get(parsed_crest_response["itemTypes"]["href"])) end
map()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 84 def map JSON.parse(HTTParty.get(parsed_crest_response["map"]["href"])) end
market_prices()
click to toggle source
# File lib/eve/api/client/crest.rb, line 54 def market_prices JSON.parse(HTTParty.get(parsed_crest_response["marketPrices"]["href"])) end
market_types()
click to toggle source
# File lib/eve/api/client/crest.rb, line 110 def market_types JSON.parse(HTTParty.get(parsed_crest_response["marketTypes"]["href"])) end
motd()
click to toggle source
# File lib/eve/api/client/crest.rb, line 14 def motd motd_hash = @parsed_crest_response["motd"] OpenStruct.new( dust: HTTParty.get(motd_hash["dust"]["href"]), eve: HTTParty.get(motd_hash["eve"]["href"]), server: HTTParty.get(motd_hash["server"]["href"]) ) end
races()
click to toggle source
Unsupported
# File lib/eve/api/client/crest.rb, line 102 def races JSON.parse(HTTParty.get(parsed_crest_response["races"]["href"])) end
server_name()
click to toggle source
# File lib/eve/api/client/crest.rb, line 23 def server_name parsed_crest_response["serverName"] end
time()
click to toggle source
# File lib/eve/api/client/crest.rb, line 106 def time JSON.parse(HTTParty.get(parsed_crest_response["time"]["href"])) end
tournaments()
click to toggle source
# File lib/eve/api/client/crest.rb, line 79 def tournaments JSON.parse(HTTParty.get(parsed_crest_response["tournaments"]["href"])) end
types(id)
click to toggle source
# File lib/eve/api/client/crest.rb, line 63 def types(id) url = "#{@crest_root_url}/types/#{id}/" puts url JSON.parse(HTTParty.get(url)) end
virtual_good_store()
click to toggle source
Need Auth
# File lib/eve/api/client/crest.rb, line 89 def virtual_good_store JSON.parse(HTTParty.get(parsed_crest_response["virtualGoodStore"]["href"])) end
wars()
click to toggle source
# File lib/eve/api/client/crest.rb, line 93 def wars JSON.parse(HTTParty.get(parsed_crest_response["wars"]["href"])) end