Class: Xcodeproj::XCScheme::LocationScenarioReference
- Inherits:
-
XMLElementWrapper
- Object
- XMLElementWrapper
- Xcodeproj::XCScheme::LocationScenarioReference
- Defined in:
- lib/xcodeproj/scheme/location_scenario_reference.rb
Overview
This class wraps the LocationScenarioReference node of a .xcscheme XML file
A LocationScenarioReference is a reference to a simulated GPS location associated with a scheme’s launch action
Instance Attribute Summary
Attributes inherited from XMLElementWrapper
Instance Method Summary collapse
-
#identifier ⇒ String
The identifier of a built-in location scenario reference, or a path to a GPX file.
- #identifier=(value) ⇒ Object
-
#initialize(target_or_node) ⇒ LocationScenarioReference
constructor
A new instance of LocationScenarioReference.
-
#reference_type ⇒ String
The reference type is 0 when using a custom GPX file, or 1 when using a built-in location reference.
- #reference_type=(value) ⇒ Object
Methods inherited from XMLElementWrapper
Constructor Details
#initialize(target_or_node) ⇒ LocationScenarioReference
Returns a new instance of LocationScenarioReference.
13 14 15 16 17 18 |
# File 'lib/xcodeproj/scheme/location_scenario_reference.rb', line 13 def initialize(target_or_node) create_xml_element_with_fallback(target_or_node, 'LocationScenarioReference') do self.identifier = '' self.reference_type = '0' end end |
Instance Method Details
#identifier ⇒ String
Returns The identifier of a built-in location scenario reference, or a path to a GPX file.
23 24 25 |
# File 'lib/xcodeproj/scheme/location_scenario_reference.rb', line 23 def identifier @xml_element.attributes['identifier'] end |
#identifier=(value) ⇒ Object
30 31 32 |
# File 'lib/xcodeproj/scheme/location_scenario_reference.rb', line 30 def identifier=(value) @xml_element.attributes['identifier'] = value end |
#reference_type ⇒ String
Returns The reference type is 0 when using a custom GPX file, or 1 when using a built-in location reference.
37 38 39 |
# File 'lib/xcodeproj/scheme/location_scenario_reference.rb', line 37 def reference_type @xml_element.attributes['referenceType'] end |
#reference_type=(value) ⇒ Object
44 45 46 |
# File 'lib/xcodeproj/scheme/location_scenario_reference.rb', line 44 def reference_type=(value) @xml_element.attributes['referenceType'] = value end |