Class: Review::ProjectReport
- Inherits:
-
Object
- Object
- Review::ProjectReport
- Defined in:
- lib/iosappaudit/Review/project_report.rb
Instance Attribute Summary collapse
-
#configuration_names ⇒ Object
Returns the value of attribute configuration_names.
-
#deployment_target ⇒ Object
Returns the value of attribute deployment_target.
-
#localizations ⇒ Object
Returns the value of attribute localizations.
-
#main_target_files ⇒ Object
Returns the value of attribute main_target_files.
-
#main_target_name ⇒ Object
Returns the value of attribute main_target_name.
-
#main_target_resources ⇒ Object
Returns the value of attribute main_target_resources.
-
#name ⇒ Object
Returns the value of attribute name.
-
#target_names ⇒ Object
Returns the value of attribute target_names.
-
#ui_test_target_files ⇒ Object
Returns the value of attribute ui_test_target_files.
-
#ui_test_target_name ⇒ Object
Returns the value of attribute ui_test_target_name.
-
#unit_test_target_files ⇒ Object
Returns the value of attribute unit_test_target_files.
-
#unit_test_target_name ⇒ Object
Returns the value of attribute unit_test_target_name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #has_obj_c_files? ⇒ Boolean
- #has_swift_files? ⇒ Boolean
-
#initialize ⇒ ProjectReport
constructor
A new instance of ProjectReport.
- #main_target_obj_c_files ⇒ Object
- #main_target_swift_files ⇒ Object
- #storyboards ⇒ Object
- #xibs ⇒ Object
Constructor Details
#initialize ⇒ ProjectReport
Returns a new instance of ProjectReport.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/iosappaudit/Review/project_report.rb', line 5 def initialize @name = "" @version = "" @deployment_target = "" @target_names = "" @configuration_names = "" @main_target_name = "" @main_target_files = [] @main_target_resources = [] @ui_test_target_name = "" @unit_test_targe_name = "" @ui_test_target_files = [] @unit_test_target_files = [] @localizations = [] end |
Instance Attribute Details
#configuration_names ⇒ Object
Returns the value of attribute configuration_names.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def configuration_names @configuration_names end |
#deployment_target ⇒ Object
Returns the value of attribute deployment_target.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def deployment_target @deployment_target end |
#localizations ⇒ Object
Returns the value of attribute localizations.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def localizations @localizations end |
#main_target_files ⇒ Object
Returns the value of attribute main_target_files.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def main_target_files @main_target_files end |
#main_target_name ⇒ Object
Returns the value of attribute main_target_name.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def main_target_name @main_target_name end |
#main_target_resources ⇒ Object
Returns the value of attribute main_target_resources.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def main_target_resources @main_target_resources end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def name @name end |
#target_names ⇒ Object
Returns the value of attribute target_names.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def target_names @target_names end |
#ui_test_target_files ⇒ Object
Returns the value of attribute ui_test_target_files.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def ui_test_target_files @ui_test_target_files end |
#ui_test_target_name ⇒ Object
Returns the value of attribute ui_test_target_name.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def ui_test_target_name @ui_test_target_name end |
#unit_test_target_files ⇒ Object
Returns the value of attribute unit_test_target_files.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def unit_test_target_files @unit_test_target_files end |
#unit_test_target_name ⇒ Object
Returns the value of attribute unit_test_target_name.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def unit_test_target_name @unit_test_target_name end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/iosappaudit/Review/project_report.rb', line 3 def version @version end |
Instance Method Details
#has_obj_c_files? ⇒ Boolean
33 34 35 |
# File 'lib/iosappaudit/Review/project_report.rb', line 33 def has_obj_c_files? main_target_obj_c_files.empty? end |
#has_swift_files? ⇒ Boolean
29 30 31 |
# File 'lib/iosappaudit/Review/project_report.rb', line 29 def has_swift_files? main_target_swift_files.empty? end |
#main_target_obj_c_files ⇒ Object
25 26 27 |
# File 'lib/iosappaudit/Review/project_report.rb', line 25 def main_target_obj_c_files main_target_files.select { |file| file.include?(".m") } end |
#main_target_swift_files ⇒ Object
21 22 23 |
# File 'lib/iosappaudit/Review/project_report.rb', line 21 def main_target_swift_files main_target_files.select { |file| file.include?(".swift") } end |
#storyboards ⇒ Object
41 42 43 |
# File 'lib/iosappaudit/Review/project_report.rb', line 41 def storyboards main_target_resources.select { |file| file.include?(".storyboard") } end |
#xibs ⇒ Object
37 38 39 |
# File 'lib/iosappaudit/Review/project_report.rb', line 37 def xibs main_target_resources.select { |file| file.include?(".xib") } end |