Class: EveOnline::ESI::Killmail

Inherits:
Base
  • Object
show all
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

Base::API_HOST

Instance Attribute Summary collapse

Attributes inherited from Base

#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token

Instance Method Summary collapse

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(options)
  super

  @killmail_id = options.fetch(:killmail_id)
  @killmail_hash = options.fetch(:killmail_hash)
end

Instance Attribute Details

#killmail_hashObject (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_idObject (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_jsonObject

TODO: implement



18
19
20
# File 'lib/eve_online/esi/killmail.rb', line 18

def as_json
  {}
end

#pathObject



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

#scopeObject



22
23
# File 'lib/eve_online/esi/killmail.rb', line 22

def scope
end