class APN::FeedbackItem

Encapsulates data returned from the APN Feedback Service. Possesses timestamp and token attributes.

Attributes

timestamp[RW]
token[RW]

Public Class Methods

new(time, token) click to toggle source
# File lib/apn/feedback.rb, line 7
def initialize(time, token)
  @timestamp = time
  @token = token
end

Public Instance Methods

to_s() click to toggle source

For convenience, return the token on to_s

# File lib/apn/feedback.rb, line 13
def to_s
  token
end