Sha256: 60222a7edc1556b7c3084d81496985a6aceeafd13b88a28e379bd34cb2d391d4
Contents?: true
Size: 911 Bytes
Versions: 1
Compression:
Stored size: 911 Bytes
Contents
module GoldenRose class ExecutionDetails attr_reader :testable_summaries def initialize(parsed_plist) @parsed_plist = parsed_plist @testable_summaries = create_testable_summaries end def model_name @parsed_plist['RunDestination']['TargetDevice']['ModelName'] rescue 'Undefined' end def os_version @parsed_plist['RunDestination']['TargetDevice']['OperatingSystemVersion'] rescue 'Undefined' end def project_name @parsed_plist['TestableSummaries'].first['ProjectPath'].split('/').first.sub(/\..+/, '') rescue nil end private def create_testable_summaries raise GeneratingError, 'Testable summaries not present.' unless @parsed_plist['TestableSummaries'] @parsed_plist['TestableSummaries'].map do |testable_summary| TestableSummary.new(testable_summary) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
golden_rose-1.0.0.pre | lib/golden_rose/execution_details.rb |