class EveOnline::ESI::CharacterContracts
Constants
- API_PATH
Attributes
character_id[R]
page[R]
Public Class Methods
new(options)
click to toggle source
Calls superclass method
EveOnline::ESI::Base::new
# File lib/eve_online/esi/character_contracts.rb, line 10 def initialize(options) super @character_id = options.fetch(:character_id) @page = options.fetch(:page, 1) end
Public Instance Methods
additional_query_params()
click to toggle source
# File lib/eve_online/esi/character_contracts.rb, line 32 def additional_query_params [:page] end
contracts()
click to toggle source
# File lib/eve_online/esi/character_contracts.rb, line 17 def contracts @contracts ||= begin output = [] response.each do |contract| output << Models::Contract.new(contract) end output end end
path()
click to toggle source
# File lib/eve_online/esi/character_contracts.rb, line 36 def path format(API_PATH, character_id: character_id) end
scope()
click to toggle source
# File lib/eve_online/esi/character_contracts.rb, line 28 def scope "esi-contracts.read_character_contracts.v1" end