Class: EveOnline::ESI::Models::Bookmark
- Defined in:
- lib/eve_online/esi/models/bookmark.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #as_json ⇒ Object
- #bookmark_id ⇒ Object
- #coordinate_x ⇒ Object
- #coordinate_y ⇒ Object
- #coordinate_z ⇒ Object
- #created ⇒ Object
- #creator_id ⇒ Object
- #folder_id ⇒ Object
- #item_id ⇒ Object
- #item_type_id ⇒ Object
- #label ⇒ Object
- #location_id ⇒ Object
- #notes ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from EveOnline::ESI::Models::Base
Instance Method Details
#as_json ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 7 def as_json { bookmark_id: bookmark_id, folder_id: folder_id, created: created, label: label, notes: notes, location_id: location_id, creator_id: creator_id, item_id: item_id, item_type_id: item_type_id, coordinate_x: coordinate_x, coordinate_y: coordinate_y, coordinate_z: coordinate_z } end |
#bookmark_id ⇒ Object
24 25 26 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 24 def bookmark_id ['bookmark_id'] end |
#coordinate_x ⇒ Object
62 63 64 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 62 def coordinate_x ['coordinates']['x'] if ['coordinates'] end |
#coordinate_y ⇒ Object
66 67 68 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 66 def coordinate_y ['coordinates']['y'] if ['coordinates'] end |
#coordinate_z ⇒ Object
70 71 72 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 70 def coordinate_z ['coordinates']['z'] if ['coordinates'] end |
#created ⇒ Object
32 33 34 35 36 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 32 def created created = ['created'] parse_datetime_with_timezone(created) if created end |
#creator_id ⇒ Object
50 51 52 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 50 def creator_id ['creator_id'] end |
#folder_id ⇒ Object
28 29 30 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 28 def folder_id ['folder_id'] end |
#item_id ⇒ Object
54 55 56 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 54 def item_id ['item']['item_id'] if ['item'] end |
#item_type_id ⇒ Object
58 59 60 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 58 def item_type_id ['item']['type_id'] if ['item'] end |
#label ⇒ Object
38 39 40 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 38 def label ['label'] end |
#location_id ⇒ Object
46 47 48 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 46 def location_id ['location_id'] end |
#notes ⇒ Object
42 43 44 |
# File 'lib/eve_online/esi/models/bookmark.rb', line 42 def notes ['notes'] end |