Class: Ansr::Model::ClassMethods::TypeProxy
- Inherits:
-
Object
- Object
- Ansr::Model::ClassMethods::TypeProxy
- Defined in:
- lib/ansr/model.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(table) ⇒ TypeProxy
constructor
A new instance of TypeProxy.
Constructor Details
#initialize(table) ⇒ TypeProxy
Returns a new instance of TypeProxy.
56 57 58 |
# File 'lib/ansr/model.rb', line 56 def initialize(table) @table = table end |
Instance Method Details
#[](name) ⇒ Object
60 61 62 63 |
# File 'lib/ansr/model.rb', line 60 def [](name) # this should delegate to the NoSqlAdapter ::ActiveRecord::ConnectionAdapters::Column.new(name.to_s, nil, String) end |