Class: BMO::APNS::Client::FeedbackTuple

Inherits:
Object
  • Object
show all
Defined in:
lib/bmo/apns/client.rb

Overview

Handle the Feedback Object

Instance Attribute Summary collapse

Instance Method Summary collapse

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(timestamp, token)
  @time  = Time.at(timestamp)
  @token = token
end

Instance Attribute Details

#timeObject

Returns the value of attribute time.



73
74
75
# File 'lib/bmo/apns/client.rb', line 73

def time
  @time
end

#tokenObject (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(timestamp, token)
    @time  = Time.at(timestamp)
    @token = token
  end
end