Class: Pushing::Adapters::TestAdapter
- Inherits:
-
Object
- Object
- Pushing::Adapters::TestAdapter
- Defined in:
- lib/pushing/adapters/test_adapter.rb
Instance Method Summary collapse
-
#initialize ⇒ TestAdapter
constructor
A new instance of TestAdapter.
- #push!(notification) ⇒ Object
Constructor Details
#initialize ⇒ TestAdapter
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 |