Class: CeilingCat::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/ceiling_cat/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Connection

Returns a new instance of Connection.


5
6
7
8
# File 'lib/ceiling_cat/connection.rb', line 5

def initialize(config)
  @config = config
  @config.storage ||= CeilingCat::Storage::Hash
end

Instance Attribute Details

#configObject

Returns the value of attribute config


3
4
5
# File 'lib/ceiling_cat/connection.rb', line 3

def config
  @config
end

Instance Method Details

#pluginsObject


10
11
12
# File 'lib/ceiling_cat/connection.rb', line 10

def plugins
  self.config.plugins
end

#storageObject


14
15
16
# File 'lib/ceiling_cat/connection.rb', line 14

def storage
  self.config.storage
end