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.



9
10
11
12
# File 'lib/apn/feedback.rb', line 9

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

Instance Attribute Details

#timestampObject

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end

#tokenObject

Returns the value of attribute token.



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

def token
  @token
end

Instance Method Details

#to_sObject

For convenience, return the token on to_s



15
16
17
# File 'lib/apn/feedback.rb', line 15

def to_s
  token
end