class EveOnline::ESI::Models::Notification

Public Instance Methods

as_json() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 7
def as_json
  {
    is_read: is_read,
    notification_id: notification_id,
    sender_id: sender_id,
    sender_type: sender_type,
    text: text,
    timestamp: timestamp,
    type: type
  }
end
is_read() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 19
def is_read
  options["is_read"]
end
notification_id() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 23
def notification_id
  options["notification_id"]
end
sender_id() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 27
def sender_id
  options["sender_id"]
end
sender_type() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 31
def sender_type
  options["sender_type"]
end
text() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 35
def text
  options["text"]
end
timestamp() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 39
def timestamp
  timestamp = options["timestamp"]

  parse_datetime_with_timezone(timestamp) if timestamp
end
type() click to toggle source
# File lib/eve_online/esi/models/notification.rb, line 45
def type
  options["type"]
end