Sha256: 63cdad84692d04f1caab19e8d819cc6ceb8a21fb4cef965007f96311c0478bbe
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.31.0 | lib/eve_online/esi/models/mail.rb |