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.
69 70 71 |
# File 'lib/xctasks/test_task.rb', line 69 def initialize( = {}) .each { |k,v| self[k] = v } end |
Instance Attribute Details
#arch ⇒ Object
OS X attributes
61 62 63 |
# File 'lib/xctasks/test_task.rb', line 61 def arch @arch end |
#id ⇒ Object
iOS keys
64 65 66 |
# File 'lib/xctasks/test_task.rb', line 64 def id @id end |
#name ⇒ Object
Common Keys
58 59 60 |
# File 'lib/xctasks/test_task.rb', line 58 def name @name end |
#os ⇒ Object
iOS Simulator keys
67 68 69 |
# File 'lib/xctasks/test_task.rb', line 67 def os @os end |
#platform ⇒ Object
Common Keys
58 59 60 |
# File 'lib/xctasks/test_task.rb', line 58 def platform @platform end |
Instance Method Details
#[](key) ⇒ Object
80 81 82 |
# File 'lib/xctasks/test_task.rb', line 80 def [](key) send(key) end |
#[]=(key, value) ⇒ Object
84 85 86 |
# File 'lib/xctasks/test_task.rb', line 84 def []=(key, value) send("#{key}=", value) end |
#to_s ⇒ Object
88 89 90 91 |
# File 'lib/xctasks/test_task.rb', line 88 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 |