Class: EveOnline::ESI::Models::War
- Defined in:
- lib/eve_online/esi/models/war.rb
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Object
#initialize, #method_missing, #respond_to_missing?
Methods included from ParsedHeaders
#cache_status, #error_limit_remain, #error_limit_reset, #etag, #ratelimit_group, #ratelimit_limit, #ratelimit_remaining, #ratelimit_used, #request_id, #total_pages
Constructor Details
This class inherits a constructor from EveOnline::ESI::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class EveOnline::ESI::Object
Instance Method Details
#aggressor ⇒ Object
23 24 25 |
# File 'lib/eve_online/esi/models/war.rb', line 23 def aggressor @aggressor ||= Aggressor.new(attributes: attributes.aggressor) end |
#allies ⇒ Object
27 28 29 |
# File 'lib/eve_online/esi/models/war.rb', line 27 def allies @allies ||= Collection.from_array(attributes.allies || [], type: Ally) end |
#as_json ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/eve_online/esi/models/war.rb', line 7 def as_json { declared: attributes.declared, finished: attributes.finished, id: attributes.id, mutual: attributes.mutual, open_for_allies: attributes.open_for_allies, retracted: attributes.retracted, started: attributes.started } end |