Class: Thrust::SpecTarget
- Inherits:
-
Object
- Object
- Thrust::SpecTarget
- Defined in:
- lib/thrust/spec_target.rb
Instance Attribute Summary collapse
-
#build_configuration ⇒ Object
readonly
Returns the value of attribute build_configuration.
-
#build_sdk ⇒ Object
readonly
Returns the value of attribute build_sdk.
-
#device ⇒ Object
readonly
Returns the value of attribute device.
-
#device_name ⇒ Object
readonly
Returns the value of attribute device_name.
-
#os_version ⇒ Object
readonly
Returns the value of attribute os_version.
-
#scheme ⇒ Object
readonly
Returns the value of attribute scheme.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ SpecTarget
constructor
A new instance of SpecTarget.
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_configuration ⇒ Object (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_sdk ⇒ Object (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 |
#device ⇒ Object (readonly)
Returns the value of attribute device.
3 4 5 |
# File 'lib/thrust/spec_target.rb', line 3 def device @device end |
#device_name ⇒ Object (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_version ⇒ Object (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 |
#scheme ⇒ Object (readonly)
Returns the value of attribute scheme.
3 4 5 |
# File 'lib/thrust/spec_target.rb', line 3 def scheme @scheme end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/thrust/spec_target.rb', line 3 def timeout @timeout end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/thrust/spec_target.rb', line 3 def type @type end |