Class: Pushing::Adapters::TestAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/pushing/adapters/test_adapter.rb

Instance Method Summary collapse

Constructor Details

#initializeTestAdapter

Returns a new instance of TestAdapter.



28
29
# File 'lib/pushing/adapters/test_adapter.rb', line 28

def initialize(*)
end

Instance Method Details

#push!(notification) ⇒ Object



31
32
33
34
# File 'lib/pushing/adapters/test_adapter.rb', line 31

def push!(notification)
  self.class.deliveries << notification if notification
  notification
end