Class: Abbu::Archive
- Inherits:
-
Object
- Object
- Abbu::Archive
- Defined in:
- lib/abbu/archive.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #contacts ⇒ Object
-
#initialize(path) ⇒ Archive
constructor
A new instance of Archive.
- #sqlite? ⇒ Boolean
Constructor Details
#initialize(path) ⇒ Archive
Returns a new instance of Archive.
12 13 14 15 |
# File 'lib/abbu/archive.rb', line 12 def initialize(path) @path = Pathname.new(path) validate! end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'lib/abbu/archive.rb', line 10 def path @path end |
Instance Method Details
#contacts ⇒ Object
17 18 19 |
# File 'lib/abbu/archive.rb', line 17 def contacts parser.contacts end |
#sqlite? ⇒ Boolean
21 22 23 |
# File 'lib/abbu/archive.rb', line 21 def sqlite? db_paths.any? end |