class Urbanairship::Reports::IndividualResponseStats
Public Class Methods
new(client: required('client'))
click to toggle source
# File lib/urbanairship/reports/response_statistics.rb, line 41 def initialize(client: required('client')) @client = client end
Public Instance Methods
get(push_id: required('push_id'))
click to toggle source
# File lib/urbanairship/reports/response_statistics.rb, line 45 def get(push_id: required('push_id')) fail ArgumentError, 'push_id cannot be nil' if push_id.nil? path = reports_path('responses/' + push_id) response = @client.send_request(method: 'GET', path: path) logger.info("Retrieved info on push_id: #{push_id}") response end