Sha256: a1d8d7cb59e53a6ff15585549f242d531ab74c77f67e06b855b097eb77c0be25
Contents?: true
Size: 576 Bytes
Versions: 12
Compression:
Stored size: 576 Bytes
Contents
# Encoding: utf-8 require 'selenium_connect/report/job_report' require 'selenium_connect/report/main_report' # selenium connect class SeleniumConnect module Report # creates report objects class ReportFactory def build(type, data) # resource locator for report case type when :main SeleniumConnect::Report::MainReport.new data when :job SeleniumConnect::Report::JobReport.new data else raise ArgumentError, "Report type \"#{type.to_s}\" unknown!" end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems