Class: NFAgent::MapperProxy
Class Method Summary collapse
-
.find_account_id(username, client_ip) ⇒ Object
TODO: Can we delegate?.
- .instance ⇒ Object
Class Method Details
.find_account_id(username, client_ip) ⇒ Object
TODO: Can we delegate?
11 12 13 |
# File 'lib/nfagent/mapper_proxy.rb', line 11 def find_account_id(username, client_ip) instance.find_account_id(username, client_ip) end |
.instance ⇒ Object
4 5 6 7 8 |
# File 'lib/nfagent/mapper_proxy.rb', line 4 def instance return @instance if @instance raise "No Mapper Set" if Config.mapper.blank? @instance = Object.const_get(Config.mapper).new end |