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.
9 10 11 12 |
# File 'lib/apn/feedback.rb', line 9 def initialize(time, token) @timestamp = time @token = token end |
Instance Attribute Details
#timestamp ⇒ Object
Returns the value of attribute timestamp.
7 8 9 |
# File 'lib/apn/feedback.rb', line 7 def @timestamp end |
#token ⇒ Object
Returns the value of attribute token.
7 8 9 |
# File 'lib/apn/feedback.rb', line 7 def token @token end |
Instance Method Details
#to_s ⇒ Object
For convenience, return the token on to_s
15 16 17 |
# File 'lib/apn/feedback.rb', line 15 def to_s token end |