Class: Headdesk::IPAReport
Overview
Report from an IPA analysis
Instance Attribute Summary
Attributes inherited from Report
#android_sdk, #apk, #bundle_id, #checks, #file_name, #ipa
Instance Method Summary collapse
- #describe ⇒ Object
-
#initialize(ipa) ⇒ IPAReport
constructor
A new instance of IPAReport.
- #to_h ⇒ Object
Methods inherited from Report
#<<, #color_for_status, #icon_for_status, #link, #to_json, #to_s
Constructor Details
#initialize(ipa) ⇒ IPAReport
Returns a new instance of IPAReport.
100 101 102 103 104 105 |
# File 'lib/headdesk/report.rb', line 100 def initialize(ipa) super() @bundle_id = ipa.info_plist['CFBundleIdentifier'] @url_schemes = ipa.url_schemes @entitlements = ipa.entitlements end |
Instance Method Details
#describe ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/headdesk/report.rb', line 107 def describe " URL Schemes: \#{@url_schemes}\n Team Id: \#{@entitlements.team_identifier}\n Associated Domains: \#{@entitlements.associated_domains}\n DESCRIPTION\nend\n" |
#to_h ⇒ Object
115 116 117 118 119 120 121 122 |
# File 'lib/headdesk/report.rb', line 115 def to_h super.merge( ipa: true, url_schemes: @url_schemes, team_id: @entitlements.team_identifier, associated_domains: @entitlements.associated_domains ) end |