Class: APN::FeedbackItem

Inherits:
Object
  • Object
show all
Defined in:
lib/apn/feedback.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time, token) ⇒ FeedbackItem

Returns a new instance of FeedbackItem.



7
8
9
10
# File 'lib/apn/feedback.rb', line 7

def initialize(time, token)
  @timestamp = time
  @token = token
end

Instance Attribute Details

#timestampObject

Returns the value of attribute timestamp.



5
6
7
# File 'lib/apn/feedback.rb', line 5

def timestamp
  @timestamp
end

#tokenObject

Returns the value of attribute token.



5
6
7
# File 'lib/apn/feedback.rb', line 5

def token
  @token
end

Instance Method Details

#to_sObject

For convenience, return the token on to_s



13
14
15
# File 'lib/apn/feedback.rb', line 13

def to_s
  token
end