Class: Lazylead::ORM::System
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Lazylead::ORM::System
- Includes:
- Lazylead::ORM
- Defined in:
- lib/lazylead/model.rb
Overview
Ticketing systems to monitor.
Instance Method Summary collapse
-
#connect(log = Log::NOTHING) ⇒ Object
Make an instance of ticketing system for future interaction.
Methods included from Lazylead::ORM
#env, #inspect, #to_hash, #to_s
Instance Method Details
#connect(log = Log::NOTHING) ⇒ Object
Make an instance of ticketing system for future interaction.
119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/lazylead/model.rb', line 119 def connect(log = Log::NOTHING) opts = to_hash if opts["type"].empty? log.warn "No task system details provided, an empty stub is used." Empty.new else opts["type"].constantize.new( env(opts.except("type", "salt")), opts["salt"].blank? ? NoSalt.new : Salt.new(opts["salt"]), log ) end end |