Module: EveOnline::ESI::ParsedHeaders

Included in:
Collection, Object
Defined in:
lib/eve_online/esi/parsed_headers.rb

Instance Method Summary collapse

Instance Method Details

#cache_statusObject



14
15
16
# File 'lib/eve_online/esi/parsed_headers.rb', line 14

def cache_status
  headers["x-esi-cache-status"]
end

#error_limit_remainObject



34
35
36
# File 'lib/eve_online/esi/parsed_headers.rb', line 34

def error_limit_remain
  headers["x-esi-error-limit-remain"]&.to_i
end

#error_limit_resetObject



38
39
40
# File 'lib/eve_online/esi/parsed_headers.rb', line 38

def error_limit_reset
  headers["x-esi-error-limit-reset"]&.to_i
end

#etagObject



6
7
8
# File 'lib/eve_online/esi/parsed_headers.rb', line 6

def etag
  headers["etag"]
end

#ratelimit_groupObject



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

def ratelimit_group
  headers["x-ratelimit-group"]
end

#ratelimit_limitObject



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

def ratelimit_limit
  headers["x-ratelimit-limit"]
end

#ratelimit_remainingObject



26
27
28
# File 'lib/eve_online/esi/parsed_headers.rb', line 26

def ratelimit_remaining
  headers["x-ratelimit-remaining"]&.to_i
end

#ratelimit_usedObject



30
31
32
# File 'lib/eve_online/esi/parsed_headers.rb', line 30

def ratelimit_used
  headers["x-ratelimit-used"]&.to_i
end

#request_idObject



10
11
12
# File 'lib/eve_online/esi/parsed_headers.rb', line 10

def request_id
  headers["x-esi-request-id"]
end

#total_pagesObject



42
43
44
# File 'lib/eve_online/esi/parsed_headers.rb', line 42

def total_pages
  headers["x-pages"]&.to_i
end