Module: Zendesk::Strategy

Defined in:
lib/zendesk/strategy.rb,
lib/zendesk/strategy/ruby.rb,
lib/zendesk/strategy/sqlite3.rb

Defined Under Namespace

Modules: Ruby, Sqlite3

Class Method Summary collapse

Class Method Details

.get(strategy_string) ⇒ Object



10
11
12
13
14
# File 'lib/zendesk/strategy.rb', line 10

def get(strategy_string)
  const_get strategy_string.classify
rescue NameError => e
  raise Zendesk::Error, "unknown strategy '#{strategy_string}'"
end