lib/eve_online/esi/models/notification.rb in eve_online-0.15.0 vs lib/eve_online/esi/models/notification.rb in eve_online-0.16.0
- old
+ new
@@ -5,27 +5,23 @@
module Models
class Notification < Base
def as_json
{
notification_id: notification_id,
- type: type,
sender_id: sender_id,
sender_type: sender_type,
timestamp: timestamp,
is_read: is_read,
- text: text
+ text: text,
+ type: type
}
end
def notification_id
options['notification_id']
end
- def type
- options['type']
- end
-
def sender_id
options['sender_id']
end
def sender_type
@@ -42,9 +38,13 @@
options['is_read']
end
def text
options['text']
+ end
+
+ def type
+ options['type']
end
end
end
end
end