Class: XCTasks::TestTask::Destination

Inherits:
Object
  • Object
show all
Defined in:
lib/xctasks/test_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Destination

Returns a new instance of Destination.



67
68
69
# File 'lib/xctasks/test_task.rb', line 67

def initialize(options = {})
  options.each { |k,v| self[k] = v }
end

Instance Attribute Details

#archObject

OS X attributes



59
60
61
# File 'lib/xctasks/test_task.rb', line 59

def arch
  @arch
end

#idObject

iOS keys



62
63
64
# File 'lib/xctasks/test_task.rb', line 62

def id
  @id
end

#nameObject

Common Keys



56
57
58
# File 'lib/xctasks/test_task.rb', line 56

def name
  @name
end

#osObject

iOS Simulator keys



65
66
67
# File 'lib/xctasks/test_task.rb', line 65

def os
  @os
end

#platformObject

Common Keys



56
57
58
# File 'lib/xctasks/test_task.rb', line 56

def platform
  @platform
end

Instance Method Details

#[](key) ⇒ Object



78
79
80
# File 'lib/xctasks/test_task.rb', line 78

def [](key)
  send(key)
end

#[]=(key, value) ⇒ Object



82
83
84
# File 'lib/xctasks/test_task.rb', line 82

def []=(key, value)
  send("#{key}=", value)
end

#to_sObject



86
87
88
89
# File 'lib/xctasks/test_task.rb', line 86

def to_s
  keys = [:platform, :name, :arch, :id, :os].reject { |k| self[k].nil? }
  keys.map { |k| "#{key_name(k)}='#{self[k].to_s.shellescape}'" }.join(',')
end