Class: XCTasks::TestTask::Destination
- Inherits:
-
Object
- Object
- XCTasks::TestTask::Destination
- Defined in:
- lib/xctasks/test_task.rb
Instance Attribute Summary collapse
-
#arch ⇒ Object
OS X attributes.
-
#id ⇒ Object
iOS keys.
-
#name ⇒ Object
Common Keys.
-
#os ⇒ Object
iOS Simulator keys.
-
#platform ⇒ Object
Common Keys.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(options = {}) ⇒ Destination
constructor
A new instance of Destination.
- #to_s ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Destination
Returns a new instance of Destination.
68 69 70 |
# File 'lib/xctasks/test_task.rb', line 68 def initialize( = {}) .each { |k,v| self[k] = v } end |
Instance Attribute Details
#arch ⇒ Object
OS X attributes
60 61 62 |
# File 'lib/xctasks/test_task.rb', line 60 def arch @arch end |
#id ⇒ Object
iOS keys
63 64 65 |
# File 'lib/xctasks/test_task.rb', line 63 def id @id end |
#name ⇒ Object
Common Keys
57 58 59 |
# File 'lib/xctasks/test_task.rb', line 57 def name @name end |
#os ⇒ Object
iOS Simulator keys
66 67 68 |
# File 'lib/xctasks/test_task.rb', line 66 def os @os end |
#platform ⇒ Object
Common Keys
57 58 59 |
# File 'lib/xctasks/test_task.rb', line 57 def platform @platform end |
Instance Method Details
#[](key) ⇒ Object
79 80 81 |
# File 'lib/xctasks/test_task.rb', line 79 def [](key) send(key) end |
#[]=(key, value) ⇒ Object
83 84 85 |
# File 'lib/xctasks/test_task.rb', line 83 def []=(key, value) send("#{key}=", value) end |
#to_s ⇒ Object
87 88 89 90 |
# File 'lib/xctasks/test_task.rb', line 87 def to_s keys = [:platform, :name, :arch, :id, :os].reject { |k| self[k].nil? } keys.map { |k| "#{key_name(k)}='#{self[k].to_s}'" }.join(',') end |