Sha256: 98a89f25ad61e7bbd8f8a53d4edbc2d7e2c6aca409cb88af345f79ab15999c29
Contents?: true
Size: 886 Bytes
Versions: 16
Compression:
Stored size: 886 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI module Models class Mail < Base def as_json { body: body, from_id: from_id, read: read, subject: subject, timestamp: timestamp } end def body options["body"] end def from_id options["from"] end def read options["read"] end def subject options["subject"] end def timestamp timestamp = options["timestamp"] parse_datetime_with_timezone(timestamp) if timestamp end def label_ids options["labels"] end def recipients @recipients ||= MailRecipients.new(options["recipients"]).mail_recipients end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems