Sha256: 9e94beddc94d40ddd8e49cf542900688ce6be69e1e03e87935551b91c1f4dd3f
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module EveOnline module Account # http://wiki.eve-id.net/APIv2_Account_AccountStatus_XML class Status < Base API_ENDPOINT = 'https://api.eveonline.com/account/AccountStatus.xml.aspx' def as_json { current_time: current_time, paid_until: paid_until, create_date: create_date, logon_count: logon_count, logon_minutes: logon_minutes, cached_until: cached_until } end def paid_until # TODO: time in "(GMT) Monrovia, Reykjavik". result.fetch('paidUntil') end def create_date # TODO: time in "(GMT) Monrovia, Reykjavik". result.fetch('createDate') end def logon_count result.fetch('logonCount').to_i end def logon_minutes result.fetch('logonMinutes').to_i end def version eveapi.fetch('@version').to_i end def url "#{ API_ENDPOINT }?keyID=#{ key_id }&vCode=#{ v_code }" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.3.0 | lib/eve_online/account/status.rb |