lib/eve_online/base.rb in eve_online-0.4.0 vs lib/eve_online/base.rb in eve_online-0.5.0

- old
+ new

@@ -13,23 +13,20 @@ def result @result ||= eveapi.fetch('result') end def cached_until - @cached_until ||= begin + @cached_until ||= \ ActiveSupport::TimeZone['UTC'].parse(eveapi.fetch('cachedUntil')) - end end def current_time - @current_time ||= begin + @current_time ||= \ ActiveSupport::TimeZone['UTC'].parse(eveapi.fetch('currentTime')) - end end def version - # TODO: check all API for version - raise NotImplementedError + eveapi.fetch('@version').to_i end def eveapi @eveapi ||= response.fetch('eveapi') end