Sha256: 1744d02b95c674d429bc49ea6e3702c3ab400853b3bdea317c132bcee7052053
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
require 'nori' require 'active_support/time' module EveOnline class BaseXML < Base attr_reader :parser def initialize @parser = Nori.new(advanced_typecasting: false) end def result @result ||= eveapi.fetch('result') end def cached_until @cached_until ||= ActiveSupport::TimeZone['UTC'].parse(eveapi.fetch('cachedUntil')) end def current_time @current_time ||= ActiveSupport::TimeZone['UTC'].parse(eveapi.fetch('currentTime')) end def version eveapi.fetch('@version').to_i end def eveapi @eveapi ||= response.fetch('eveapi') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.7.0 | lib/eve_online/base_xml.rb |