Class: Ardm::Ar::StorageNames::Proxy
- Inherits:
-
Object
- Object
- Ardm::Ar::StorageNames::Proxy
- Defined in:
- lib/ardm/ar/storage_names.rb
Instance Method Summary collapse
- #[]=(repo, table_name) ⇒ Object
-
#initialize(model) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(model) ⇒ Proxy
Returns a new instance of Proxy.
15 16 17 |
# File 'lib/ardm/ar/storage_names.rb', line 15 def initialize(model) @model = model end |
Instance Method Details
#[]=(repo, table_name) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/ardm/ar/storage_names.rb', line 19 def []=(repo, table_name) unless repo == :default raise ArgumentError, "repositories other than :default not supported." end @model.table_name = table_name end |