Sha256: b4ef9e898e3feec17ff70938ad0f60289b1f24f24f2d78a6c16360deba12d098
Contents?: true
Size: 794 Bytes
Versions: 1
Compression:
Stored size: 794 Bytes
Contents
require 'open-uri' module EveOnline class AccountStatus < Base API_ENDPOINT = 'https://api.eveonline.com/account/AccountStatus.xml.aspx' def current_time eveapi.fetch('currentTime') end def paid_until result.fetch('paidUntil') end def create_date result.fetch('createDate') end def logon_count result.fetch('logonCount').to_i end def logon_minutes result.fetch('logonMinutes').to_i end def cached_until eveapi.fetch('cachedUntil') end def version eveapi.fetch('@version').to_i end def result eveapi.fetch('result') end def eveapi response.fetch('eveapi') end def url "#{ API_ENDPOINT }?keyID=#{ key_id }&vCode=#{ v_code }" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.2.0 | lib/eve_online/account_status.rb |