Sha256: bea911320033e0ee07609505d5a9ff4c6aded03876bea0a4dfbe34aca369baf4
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
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| Notification.new(notification) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems