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.
11 12 13 14 |
# File 'lib/abbu/archive.rb', line 11 def initialize(path) @path = Pathname.new(path) validate! end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/abbu/archive.rb', line 9 def path @path end |
Instance Method Details
#contacts ⇒ Object
16 17 18 |
# File 'lib/abbu/archive.rb', line 16 def contacts parser.contacts end |
#sqlite? ⇒ Boolean
20 21 22 |
# File 'lib/abbu/archive.rb', line 20 def sqlite? db_paths.any? end |