Class: EveOnline::ESI::Killmail
- Defined in:
- lib/eve_online/esi/killmail.rb
Constant Summary collapse
- API_PATH =
"/v1/killmails/%<killmail_id>s/%<killmail_hash>s/"
Constants inherited from Base
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.
Attributes inherited from Base
#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token
Instance Method Summary collapse
-
#as_json ⇒ Object
TODO: implement.
-
#initialize(options) ⇒ Killmail
constructor
A new instance of Killmail.
- #path ⇒ Object
- #scope ⇒ Object
Methods inherited from Base
#add_middleware, #additional_query_params, #base_query_params, #connection, #error_limit_remain, #error_limit_reset, #http_method, #open_timeout, #open_timeout=, #page, #query, #read_timeout, #read_timeout=, #request_id, #resource, #response, #total_pages, #uri, #url, #user_agent, #write_timeout, #write_timeout=
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 |