Class: XCResult::CodeCoverageInfo

Inherits:
AbstractObject show all
Defined in:
lib/xcresult/models.rb

Overview

  • CodeCoverageInfo

    * Kind: object
    * Properties:
      + hasCoverageData: Bool
      + reportRef: Reference?
      + archiveRef: Reference?
    

Instance Attribute Summary collapse

Attributes inherited from AbstractObject

#type

Instance Method Summary collapse

Methods inherited from AbstractObject

#fetch_value, #fetch_values

Constructor Details

#initialize(data) ⇒ CodeCoverageInfo

Returns a new instance of CodeCoverageInfo.



304
305
306
307
308
# File 'lib/xcresult/models.rb', line 304

def initialize(data)
  self.has_coverage_data = fetch_value(data, 'hasCoverageData')
  self.report_ref = Reference.new(data['reportRef']) if data['reportRef']
  self.archive_ref = Reference.new(data['archiveRef']) if data['archiveRef']
end

Instance Attribute Details

#archive_refObject

Returns the value of attribute archive_ref.



303
304
305
# File 'lib/xcresult/models.rb', line 303

def archive_ref
  @archive_ref
end

#has_coverage_dataObject

Returns the value of attribute has_coverage_data.



301
302
303
# File 'lib/xcresult/models.rb', line 301

def has_coverage_data
  @has_coverage_data
end

#report_refObject

Returns the value of attribute report_ref.



302
303
304
# File 'lib/xcresult/models.rb', line 302

def report_ref
  @report_ref
end