Class: TamTam::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/tam_tam/adapter.rb

Overview

An abstract base class for all adapters.

Direct Known Subclasses

TamTam::Adapters::Adium

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path = nil) ⇒ Adapter

Returns a new instance of Adapter.



12
13
14
# File 'lib/tam_tam/adapter.rb', line 12

def initialize(path = nil)
  self.path = path || self.class.default_path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



10
11
12
# File 'lib/tam_tam/adapter.rb', line 10

def path
  @path
end

Instance Method Details

#to_sObject Also known as: inspect



16
17
18
# File 'lib/tam_tam/adapter.rb', line 16

def to_s
  %{#<#{self.class.name}:0x#{object_id.to_s(16)} path="#{path}">}
end