Class: EveOnline::ESI::CharacterBookmarkFolders
- Defined in:
- lib/eve_online/esi/character_bookmark_folders.rb
Constant Summary collapse
- API_ENDPOINT =
'https://esi.tech.ccp.is/v2/characters/%<character_id>s/bookmarks/folders/?datasource=tranquility'
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
Attributes inherited from Base
Instance Method Summary collapse
- #bookmark_folders ⇒ Object
-
#initialize(options) ⇒ CharacterBookmarkFolders
constructor
A new instance of CharacterBookmarkFolders.
- #scope ⇒ Object
- #url ⇒ Object
Methods inherited from Base
#content, #response, #user_agent
Constructor Details
#initialize(options) ⇒ CharacterBookmarkFolders
Returns a new instance of CharacterBookmarkFolders.
10 11 12 13 14 |
# File 'lib/eve_online/esi/character_bookmark_folders.rb', line 10 def initialize() super @character_id = [:character_id] end |
Instance Attribute Details
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
8 9 10 |
# File 'lib/eve_online/esi/character_bookmark_folders.rb', line 8 def character_id @character_id end |
Instance Method Details
#bookmark_folders ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/eve_online/esi/character_bookmark_folders.rb', line 16 def bookmark_folders output = [] response.each do |bookmark_folder| output << Models::BookmarkFolder.new(bookmark_folder) end output end |
#scope ⇒ Object
25 26 27 |
# File 'lib/eve_online/esi/character_bookmark_folders.rb', line 25 def scope 'esi-bookmarks.read_character_bookmarks.v1' end |
#url ⇒ Object
29 30 31 |
# File 'lib/eve_online/esi/character_bookmark_folders.rb', line 29 def url format(API_ENDPOINT, character_id: character_id) end |