Module: Eloan::ApiLoader

Defined in:
lib/eloan/api_loader.rb

Class Method Summary collapse

Class Method Details

.with(config) ⇒ Object



4
5
6
7
8
9
# File 'lib/eloan/api_loader.rb', line 4

def with(config)
  raise "app_key not allow blank" if config.app_key.blank?
  raise "app_token not allow blank" if config.app_token.blank?
  raise "app_key not allow blank and length less then 7" if config.platform.blank? || config.platform.length > 6
  Client.new(config)
end