Class: Spider::Model::Mappers::ProxyMapper
- Defined in:
- lib/spiderfw/model/mappers/proxy_mapper.rb
Overview
TODO: remove?
Instance Method Summary collapse
- #find(query, query_set = nil) ⇒ Object
-
#initialize(model, proxied_model) ⇒ ProxyMapper
constructor
:nodoc:.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(model, proxied_model) ⇒ ProxyMapper
:nodoc:
8 9 10 11 |
# File 'lib/spiderfw/model/mappers/proxy_mapper.rb', line 8 def initialize(model, proxied_model) @model = model @proxied_model = proxied_model end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
18 19 20 |
# File 'lib/spiderfw/model/mappers/proxy_mapper.rb', line 18 def method_missing(method, *args) @proxied_model.mapper.send(method, *args) end |