Class: CeilingCat::Connection
- Inherits:
-
Object
- Object
- CeilingCat::Connection
- Defined in:
- lib/ceiling_cat/connection.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config) ⇒ Connection
constructor
A new instance of Connection.
- #plugins ⇒ Object
- #storage ⇒ Object
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
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/ceiling_cat/connection.rb', line 3 def config @config end |
Instance Method Details
#plugins ⇒ Object
10 11 12 |
# File 'lib/ceiling_cat/connection.rb', line 10 def plugins self.config.plugins end |
#storage ⇒ Object
14 15 16 |
# File 'lib/ceiling_cat/connection.rb', line 14 def storage self.config.storage end |