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.



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

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.



298
299
300
# File 'lib/xcresult/models.rb', line 298

def archive_ref
  @archive_ref
end

#has_coverage_dataObject

Returns the value of attribute has_coverage_data.



296
297
298
# File 'lib/xcresult/models.rb', line 296

def has_coverage_data
  @has_coverage_data
end

#report_refObject

Returns the value of attribute report_ref.



297
298
299
# File 'lib/xcresult/models.rb', line 297

def report_ref
  @report_ref
end