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 Attribute Summary collapse
Instance Method Summary collapse
Class Attribute Details
.common_client ⇒ Object
40 41 42 |
# File 'lib/bicho/common_client.rb', line 40 def self.common_client @common_client ||= (raise 'No common client set') end |
Instance Method Details
#common_client ⇒ Object
44 45 46 |
# File 'lib/bicho/common_client.rb', line 44 def common_client CommonClient.common_client end |