Class: Abbu::Archive

Inherits:
Object
  • Object
show all
Defined in:
lib/abbu/archive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



9
10
11
# File 'lib/abbu/archive.rb', line 9

def path
  @path
end

Instance Method Details

#contactsObject



16
17
18
# File 'lib/abbu/archive.rb', line 16

def contacts
  parser.contacts
end

#sqlite?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/abbu/archive.rb', line 20

def sqlite?
  db_paths.any?
end