Class: Ribbit::Adapters::Adapter

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

Direct Known Subclasses

Merb, None

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Adapter

Returns a new instance of Adapter.



13
14
15
# File 'lib/ribbit/adapters/adapter.rb', line 13

def initialize(config)
  self.configuration = config
end

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/ribbit/adapters/adapter.rb', line 5

def configuration
  @configuration
end

Class Method Details

.inherited(klass) ⇒ Object



8
9
10
# File 'lib/ribbit/adapters/adapter.rb', line 8

def inherited(klass)
  Ribbit::Adapters.add_adapter klass
end

Instance Method Details

#activate!Object

This should perform the steps to integrate hoptoad catching into the framework

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/ribbit/adapters/adapter.rb', line 23

def activate!
  raise NotImplementedError
end

#loggerObject

This should provide something that implements the logger interface

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/ribbit/adapters/adapter.rb', line 18

def logger
  raise NotImplementedError
end