Class: Tape::Adapters::Pony

Inherits:
Base
  • Object
show all
Defined in:
lib/tape/adapters/pony.rb

Overview

Using Pony

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#by_recipient, #initialize, #parse

Constructor Details

This class inherits a constructor from Tape::Adapters::Base

Instance Method Details

#allObject



7
8
9
# File 'lib/tape/adapters/pony.rb', line 7

def all
  ::Pony.deliveries
end

#lastObject



11
12
13
# File 'lib/tape/adapters/pony.rb', line 11

def last
  ::Pony.deliveries.last
end

#resetObject



15
16
17
# File 'lib/tape/adapters/pony.rb', line 15

def reset
  ::Pony.deliveries.clear
end