class EveOnline::ESI::Models::Mail
Public Instance Methods
as_json()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 7 def as_json { body: body, from_id: from_id, read: read, subject: subject, timestamp: timestamp } end
body()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 17 def body options["body"] end
from_id()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 21 def from_id options["from"] end
label_ids()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 39 def label_ids options["labels"] end
read()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 25 def read options["read"] end
recipients()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 43 def recipients @recipients ||= MailRecipients.new(options["recipients"]).mail_recipients end
subject()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 29 def subject options["subject"] end
timestamp()
click to toggle source
# File lib/eve_online/esi/models/mail.rb, line 33 def timestamp timestamp = options["timestamp"] parse_datetime_with_timezone(timestamp) if timestamp end