Class: EveOnline::ESI::Killmail
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Killmail
- Defined in:
- lib/eve_online/esi/killmail.rb
Constant Summary collapse
- API_PATH =
"/v1/killmails/%<killmail_id>s/%<killmail_hash>s/"
Instance Attribute Summary collapse
-
#killmail_hash ⇒ Object
readonly
Returns the value of attribute killmail_hash.
-
#killmail_id ⇒ Object
readonly
Returns the value of attribute killmail_id.
Instance Method Summary collapse
-
#as_json ⇒ Object
TODO: implement.
-
#initialize(options) ⇒ Killmail
constructor
A new instance of Killmail.
- #path ⇒ Object
- #scope ⇒ Object
Constructor Details
#initialize(options) ⇒ Killmail
Returns a new instance of Killmail.
10 11 12 13 14 15 |
# File 'lib/eve_online/esi/killmail.rb', line 10 def initialize() super @killmail_id = .fetch(:killmail_id) @killmail_hash = .fetch(:killmail_hash) end |
Instance Attribute Details
#killmail_hash ⇒ Object (readonly)
Returns the value of attribute killmail_hash.
8 9 10 |
# File 'lib/eve_online/esi/killmail.rb', line 8 def killmail_hash @killmail_hash end |
#killmail_id ⇒ Object (readonly)
Returns the value of attribute killmail_id.
8 9 10 |
# File 'lib/eve_online/esi/killmail.rb', line 8 def killmail_id @killmail_id end |
Instance Method Details
#as_json ⇒ Object
TODO: implement
18 19 20 |
# File 'lib/eve_online/esi/killmail.rb', line 18 def as_json {} end |
#path ⇒ Object
25 26 27 |
# File 'lib/eve_online/esi/killmail.rb', line 25 def path format(API_PATH, killmail_id: killmail_id, killmail_hash: killmail_hash) end |
#scope ⇒ Object
22 23 |
# File 'lib/eve_online/esi/killmail.rb', line 22 def scope end |