Class: EveApi::Data::Result

Inherits:
Generic
  • Object
show all
Defined in:
lib/eve_api/data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Generic

#inspect, #keys, #method_missing, #to_hash

Constructor Details

#initialize(current_time, cached_until, data, outdated = false) ⇒ Result

Returns a new instance of Result.



32
33
34
35
36
37
# File 'lib/eve_api/data.rb', line 32

def initialize(current_time, cached_until, data, outdated = false)
  @current_time = current_time
  @cached_until = cached_until
  @outdated = outdated
  super(data)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EveApi::Data::Generic

Instance Attribute Details

#cached_untilObject

Returns the value of attribute cached_until.



30
31
32
# File 'lib/eve_api/data.rb', line 30

def cached_until
  @cached_until
end

#current_timeObject

Returns the value of attribute current_time.



30
31
32
# File 'lib/eve_api/data.rb', line 30

def current_time
  @current_time
end

#outdatedObject

Returns the value of attribute outdated.



30
31
32
# File 'lib/eve_api/data.rb', line 30

def outdated
  @outdated
end