Class: Vx::Builder::Task
- Inherits:
-
Object
- Object
- Vx::Builder::Task
- Defined in:
- lib/vx/builder/task.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#deploy_key ⇒ Object
readonly
Returns the value of attribute deploy_key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pull_request_id ⇒ Object
readonly
Returns the value of attribute pull_request_id.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
-
#initialize(name, src, sha, options = {}) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name, src, sha, options = {}) ⇒ Task
Returns a new instance of Task.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/vx/builder/task.rb', line 7 def initialize(name, src, sha, = {}) @name = name @src = src @sha = sha @deploy_key = [:deploy_key] @branch = [:branch] @pull_request_id = [:pull_request_id] validate! end |
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
5 6 7 |
# File 'lib/vx/builder/task.rb', line 5 def branch @branch end |
#deploy_key ⇒ Object (readonly)
Returns the value of attribute deploy_key.
5 6 7 |
# File 'lib/vx/builder/task.rb', line 5 def deploy_key @deploy_key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/vx/builder/task.rb', line 5 def name @name end |
#pull_request_id ⇒ Object (readonly)
Returns the value of attribute pull_request_id.
5 6 7 |
# File 'lib/vx/builder/task.rb', line 5 def pull_request_id @pull_request_id end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
5 6 7 |
# File 'lib/vx/builder/task.rb', line 5 def sha @sha end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
5 6 7 |
# File 'lib/vx/builder/task.rb', line 5 def src @src end |