Sha256: 623b9bfbffacb9acb1b5e37c66427ebd46b358b0532d71b4514d57126efd1e1a
Contents?: true
Size: 498 Bytes
Versions: 23
Compression:
Stored size: 498 Bytes
Contents
module TrackerApi module Endpoints class Notifications attr_accessor :client def initialize(client) @client = client end def get(params={}) data = client.paginate('/my/notifications', params: params) raise Errors::UnexpectedData, 'Array of notifications expected' unless data.is_a? Array data.map do |notification| Resources::Notification.new({ client: client }.merge(notification)) end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems