Class: BMO::APNS::Client::FeedbackTuple
- Inherits:
-
Object
- Object
- BMO::APNS::Client::FeedbackTuple
- Defined in:
- lib/bmo/apns/client.rb
Overview
Handle the Feedback Object
Instance Attribute Summary collapse
-
#time ⇒ Object
Returns the value of attribute time.
-
#token ⇒ Object
readonly
The Token of the device notified wrongly.
Instance Method Summary collapse
-
#initialize(timestamp, token) ⇒ FeedbackTuple
constructor
A new instance of FeedbackTuple.
Constructor Details
#initialize(timestamp, token) ⇒ FeedbackTuple
Returns a new instance of FeedbackTuple.
75 76 77 78 |
# File 'lib/bmo/apns/client.rb', line 75 def initialize(, token) @time = Time.at() @token = token end |
Instance Attribute Details
#time ⇒ Object
Returns the value of attribute time.
73 74 75 |
# File 'lib/bmo/apns/client.rb', line 73 def time @time end |
#token ⇒ Object (readonly)
The Token of the device notified wrongly
72 73 74 75 76 77 78 79 |
# File 'lib/bmo/apns/client.rb', line 72 class FeedbackTuple attr_reader :time, :token def initialize(, token) @time = Time.at() @token = token end end |