Class: Droonga::Adapter

Inherits:
Object
  • Object
show all
Extended by:
Pluggable
Includes:
ErrorMessages, Loggable
Defined in:
lib/droonga/adapter.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pluggable

find_sub_classes, options

Class Method Details

.idObject



37
38
39
# File 'lib/droonga/adapter.rb', line 37

def id
  options[:id] || name || object_id.to_s
end

.input_messageObject



29
30
31
# File 'lib/droonga/adapter.rb', line 29

def input_message
  Plugin::Metadata::AdapterInputMessage.new(self)
end

.output_messageObject



33
34
35
# File 'lib/droonga/adapter.rb', line 33

def output_message
  Plugin::Metadata::AdapterOutputMessage.new(self)
end

Instance Method Details

#adapt_input(input_message) ⇒ Object



42
43
# File 'lib/droonga/adapter.rb', line 42

def adapt_input(input_message)
end

#adapt_output(output_message) ⇒ Object



45
46
# File 'lib/droonga/adapter.rb', line 45

def adapt_output(output_message)
end