Class: ForemanProbing::Service
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ForemanProbing::Service
- Defined in:
- app/models/foreman_probing/service.rb
Class Method Summary collapse
Class Method Details
.new_from_facts(name, facts) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/models/foreman_probing/service.rb', line 5 def self.new_from_facts(name, facts) service = self.new service.name = name service.confidence = facts.fetch('confidence', 0) service.method = facts.fetch('method', 'table') # TODO: Process the rest of the attributes service end |