Class: APN::FeedbackItem
- Inherits:
-
Object
- Object
- APN::FeedbackItem
- Defined in:
- lib/apn/feedback.rb
Overview
Encapsulates data returned from the APN Feedback Service. Possesses timestamp
and token
attributes.
Instance Attribute Summary collapse
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(time, token) ⇒ FeedbackItem
constructor
A new instance of FeedbackItem.
-
#to_s ⇒ Object
For convenience, return the token on to_s.
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
#timestamp ⇒ Object
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/apn/feedback.rb', line 5 def @timestamp end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/apn/feedback.rb', line 5 def token @token end |
Instance Method Details
#to_s ⇒ Object
For convenience, return the token on to_s
13 14 15 |
# File 'lib/apn/feedback.rb', line 13 def to_s token end |