Class: Review::ProjectReport

Inherits:
Object
  • Object
show all
Defined in:
lib/iosappaudit/Review/project_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProjectReport

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_namesObject

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_targetObject

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

#localizationsObject

Returns the value of attribute localizations.



3
4
5
# File 'lib/iosappaudit/Review/project_report.rb', line 3

def localizations
  @localizations
end

#main_target_filesObject

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_nameObject

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_resourcesObject

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/iosappaudit/Review/project_report.rb', line 3

def name
  @name
end

#target_namesObject

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_filesObject

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_nameObject

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_filesObject

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_nameObject

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

#versionObject

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

Returns:

  • (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

Returns:

  • (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_filesObject



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_filesObject



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

#storyboardsObject



41
42
43
# File 'lib/iosappaudit/Review/project_report.rb', line 41

def storyboards
    main_target_resources.select { |file| file.include?(".storyboard") }
end

#xibsObject



37
38
39
# File 'lib/iosappaudit/Review/project_report.rb', line 37

def xibs
    main_target_resources.select { |file| file.include?(".xib") }
end