Sha256: 279879c013fae7712921aaabade31fc43ac77a515d1433e31e5f2dece6510a45
Contents?: true
Size: 1.58 KB
Versions: 7
Compression:
Stored size: 1.58 KB
Contents
# frozen_string_literal: true module EveOnline module ESI module Models class Bookmark < Base def as_json { bookmark_id: bookmark_id, coordinate_x: coordinate_x, coordinate_y: coordinate_y, coordinate_z: coordinate_z, created: created, creator_id: creator_id, folder_id: folder_id, item_id: item_id, item_type_id: item_type_id, label: label, location_id: location_id, notes: notes } end def bookmark_id options['bookmark_id'] end def coordinate_x options['coordinates']['x'] if options['coordinates'] end def coordinate_y options['coordinates']['y'] if options['coordinates'] end def coordinate_z options['coordinates']['z'] if options['coordinates'] end def created created = options['created'] parse_datetime_with_timezone(created) if created end def creator_id options['creator_id'] end def folder_id options['folder_id'] end def item_id options['item']['item_id'] if options['item'] end def item_type_id options['item']['type_id'] if options['item'] end def label options['label'] end def location_id options['location_id'] end def notes options['notes'] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems