Class: RXCode::Target
- Inherits:
-
Model
- Object
- Model
- RXCode::Target
show all
- Defined in:
- lib/rxcode/models/target.rb
Instance Attribute Summary
Attributes inherited from Model
#archive_object
Instance Method Summary
collapse
Methods inherited from Model
#archive, class_for_archived_object_type, #initialize, map_archived_object, object_at_path, #root
Constructor Details
This class inherits a constructor from RXCode::Model
Instance Method Details
#application? ⇒ Boolean
31
32
33
|
# File 'lib/rxcode/models/target.rb', line 31
def application?
product_type == 'com.apple.product-type.application'
end
|
#build_configuration_list ⇒ Object
BUILD CONFIGURATIONS =======================================================================================
41
42
43
|
# File 'lib/rxcode/models/target.rb', line 41
def build_configuration_list
archive_object.model_object_for_key('buildConfigurationList')
end
|
#bundle? ⇒ Boolean
35
36
37
|
# File 'lib/rxcode/models/target.rb', line 35
def bundle?
product_type == 'com.apple.product-type.bundle'
end
|
#framework? ⇒ Boolean
27
28
29
|
# File 'lib/rxcode/models/target.rb', line 27
def framework?
product_type == 'com.apple.product-type.framework'
end
|
#name ⇒ Object
NAME =======================================================================================================
7
8
9
|
# File 'lib/rxcode/models/target.rb', line 7
def name
archive_object['name']
end
|
#product_name ⇒ Object
PRODUCT ====================================================================================================
13
14
15
|
# File 'lib/rxcode/models/target.rb', line 13
def product_name
archive_object['productName']
end
|
#product_reference ⇒ Object
17
18
19
|
# File 'lib/rxcode/models/target.rb', line 17
def product_reference
archive_object.model_object_for_key('productReference')
end
|
#product_type ⇒ Object
PRODUCT TYPE ===============================================================================================
23
24
25
|
# File 'lib/rxcode/models/target.rb', line 23
def product_type
archive_object['productType']
end
|