class RedHatSupportLib::Brokers::Symptom
Public Class Methods
new(connection)
click to toggle source
Calls superclass method
RedHatSupportLib::Brokers::Broker.new
# File lib/brokers/symptom.rb, line 4 def initialize(connection) super end
Public Instance Methods
diagnose_file(file_path)
click to toggle source
# 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