Class: RedHatSupportLib::Brokers::Symptom
- Defined in:
- lib/brokers/symptom.rb
Instance Attribute Summary
Attributes inherited from Broker
Instance Method Summary collapse
- #diagnose_file(file_path) ⇒ Object
-
#initialize(connection) ⇒ Symptom
constructor
A new instance of Symptom.
Methods inherited from Broker
Constructor Details
#initialize(connection) ⇒ Symptom
Returns a new instance of Symptom.
4 5 6 |
# File 'lib/brokers/symptom.rb', line 4 def initialize(connection) super end |
Instance Method Details
#diagnose_file(file_path) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/brokers/symptom.rb', line 8 def diagnose_file(file_path) File.open(file_path) do |file| headers = {:content_type => 'text/plain', :accept => :json} result = @connection.post("/rs/symptoms/extractor", file, headers) end end |