Class: Tape::Adapters::Base
- Inherits:
-
Object
- Object
- Tape::Adapters::Base
show all
- Defined in:
- lib/tape/adapters/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
9
10
11
|
# File 'lib/tape/adapters/base.rb', line 9
def initialize(options)
self.options = options
end
|
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
7
8
9
|
# File 'lib/tape/adapters/base.rb', line 7
def options
@options
end
|
Instance Method Details
#all ⇒ Object
13
14
15
|
# File 'lib/tape/adapters/base.rb', line 13
def all
raise "Not implemented"
end
|
#by_recipient(address) ⇒ Object
26
27
28
29
30
|
# File 'lib/tape/adapters/base.rb', line 26
def by_recipient(address)
all.select do |mail|
mail.destinations.include?(address)
end
end
|
#last ⇒ Object
Returns the last sent mail or nil if there is none.
18
19
20
|
# File 'lib/tape/adapters/base.rb', line 18
def last
raise "Not implemented"
end
|
#parse(mail) ⇒ Object
32
33
34
|
# File 'lib/tape/adapters/base.rb', line 32
def parse(mail)
Mail.read mail
end
|
#reset ⇒ Object
22
23
24
|
# File 'lib/tape/adapters/base.rb', line 22
def reset
raise "Not implemented"
end
|