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

Version Path
selenium-connect-3.7.1 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.7.0 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.6.0 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.5.0 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.4.0 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.3.1 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.3.0 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.2.0 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.1.2 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.1.1 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.1.0 lib/selenium_connect/report/report_factory.rb
selenium-connect-3.0.0 lib/selenium_connect/report/report_factory.rb