Class: EveApi::Data::Result
Instance Attribute Summary collapse
-
#cached_until ⇒ Object
Returns the value of attribute cached_until.
-
#current_time ⇒ Object
Returns the value of attribute current_time.
-
#outdated ⇒ Object
Returns the value of attribute outdated.
Instance Method Summary collapse
-
#initialize(current_time, cached_until, data, outdated = false) ⇒ Result
constructor
A new instance of Result.
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_until ⇒ Object
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_time ⇒ Object
Returns the value of attribute current_time.
30 31 32 |
# File 'lib/eve_api/data.rb', line 30 def current_time @current_time end |
#outdated ⇒ Object
Returns the value of attribute outdated.
30 31 32 |
# File 'lib/eve_api/data.rb', line 30 def outdated @outdated end |