Class: Thrust::SpecTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/thrust/spec_target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ SpecTarget

Returns a new instance of SpecTarget.



12
13
14
15
16
17
18
19
20
21
# File 'lib/thrust/spec_target.rb', line 12

def initialize(attributes)
  @build_configuration = attributes['build_configuration']
  @build_sdk = attributes['build_sdk'] || 'iphonesimulator'
  @device = attributes['device'] || 'iphone'
  @device_name = attributes['device_name']
  @os_version = attributes['os_version']
  @scheme = attributes['scheme']
  @type = attributes['type'] || 'app'
  @timeout = attributes['timeout']
end

Instance Attribute Details

#build_configurationObject (readonly)

Returns the value of attribute build_configuration.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def build_configuration
  @build_configuration
end

#build_sdkObject (readonly)

Returns the value of attribute build_sdk.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def build_sdk
  @build_sdk
end

#deviceObject (readonly)

Returns the value of attribute device.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def device
  @device
end

#device_nameObject (readonly)

Returns the value of attribute device_name.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def device_name
  @device_name
end

#os_versionObject (readonly)

Returns the value of attribute os_version.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def os_version
  @os_version
end

#schemeObject (readonly)

Returns the value of attribute scheme.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def scheme
  @scheme
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def timeout
  @timeout
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/thrust/spec_target.rb', line 3

def type
  @type
end