Module: Bicho::CommonClient

Defined in:
lib/bicho/common_client.rb

Overview

This module allows the [Bug] and other classes to offer an ActiveRecord like query API by allowing to set a default [Client] to make operations.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.common_clientObject



37
38
39
# File 'lib/bicho/common_client.rb', line 37

def self.common_client
  @common_client || (raise "No common client set")
end

.common_client=(client) ⇒ Object



33
34
35
# File 'lib/bicho/common_client.rb', line 33

def self.common_client=(client)
  @common_client = client
end

Instance Method Details

#common_clientObject



41
42
43
# File 'lib/bicho/common_client.rb', line 41

def common_client
  CommonClient.common_client
end