lib/notifications/client/notifications_collection.rb in notifications-ruby-client-1.1.2 vs lib/notifications/client/notifications_collection.rb in notifications-ruby-client-2.0.0
- old
+ new
@@ -1,16 +1,12 @@
module Notifications
class Client
class NotificationsCollection
attr_reader :links,
- :total,
- :page_size,
:collection
def initialize(response)
@links = response["links"]
- @total = response["total"]
- @page_size = response["page_size"]
@collection = collection_from(response["notifications"])
end
def collection_from(notifications)
notifications.map do |notification|