Class: Ppl::Adapter::Storage
- Inherits:
-
Object
- Object
- Ppl::Adapter::Storage
show all
- Defined in:
- lib/ppl/adapter/storage.rb
Defined Under Namespace
Classes: Disk, Factory, Git
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.create_address_book(path) ⇒ Object
4
5
6
|
# File 'lib/ppl/adapter/storage.rb', line 4
def self.create_address_book(path)
raise NotImplementedError
end
|
Instance Method Details
8
9
10
|
# File 'lib/ppl/adapter/storage.rb', line 8
def delete_contact(contact)
raise NotImplementedError
end
|
#load_address_book ⇒ Object
12
13
14
|
# File 'lib/ppl/adapter/storage.rb', line 12
def load_address_book
raise NotImplementedError
end
|
16
17
18
|
# File 'lib/ppl/adapter/storage.rb', line 16
def load_contact(id)
raise NotImplementedError
end
|
#path ⇒ Object
32
33
34
|
# File 'lib/ppl/adapter/storage.rb', line 32
def path
raise NotImplementedError
end
|
20
21
22
23
24
25
26
|
# File 'lib/ppl/adapter/storage.rb', line 20
def require_contact(id)
contact = load_contact(id)
if contact.nil?
raise Ppl::Error::ContactNotFound, id
end
return contact
end
|
28
29
30
|
# File 'lib/ppl/adapter/storage.rb', line 28
def save_contact(contact)
raise NotImplementedError
end
|