Class: BuildBuddy::BuildData
- Inherits:
-
Object
- Object
- BuildBuddy::BuildData
- Defined in:
- lib/build_buddy/build_data.rb
Instance Attribute Summary collapse
-
#build_log_filename ⇒ Object
Returns the value of attribute build_log_filename.
-
#build_type ⇒ Object
one of :master, :release or :pull_request.
-
#build_version ⇒ Object
Returns the value of attribute build_version.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#pull_request ⇒ Object
Returns the value of attribute pull_request.
-
#repo_full_name ⇒ Object
Returns the value of attribute repo_full_name.
-
#repo_sha ⇒ Object
Returns the value of attribute repo_sha.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#termination_type ⇒ Object
:killed or :exited.
Instance Method Summary collapse
-
#initialize(build_type, args) ⇒ BuildData
constructor
A new instance of BuildData.
Constructor Details
#initialize(build_type, args) ⇒ BuildData
Returns a new instance of BuildData.
15 16 17 18 19 20 21 |
# File 'lib/build_buddy/build_data.rb', line 15 def initialize(build_type, args) @build_type = build_type @repo_full_name = args[:repo_full_name] @repo_sha = args[:repo_sha] @build_version = args[:build_version] @pull_request = args[:pull_request] end |
Instance Attribute Details
#build_log_filename ⇒ Object
Returns the value of attribute build_log_filename.
13 14 15 |
# File 'lib/build_buddy/build_data.rb', line 13 def build_log_filename @build_log_filename end |
#build_type ⇒ Object
one of :master, :release or :pull_request
3 4 5 |
# File 'lib/build_buddy/build_data.rb', line 3 def build_type @build_type end |
#build_version ⇒ Object
Returns the value of attribute build_version.
5 6 7 |
# File 'lib/build_buddy/build_data.rb', line 5 def build_version @build_version end |
#end_time ⇒ Object
Returns the value of attribute end_time.
12 13 14 |
# File 'lib/build_buddy/build_data.rb', line 12 def end_time @end_time end |
#exit_code ⇒ Object
Returns the value of attribute exit_code.
10 11 12 |
# File 'lib/build_buddy/build_data.rb', line 10 def exit_code @exit_code end |
#pull_request ⇒ Object
Returns the value of attribute pull_request.
6 7 8 |
# File 'lib/build_buddy/build_data.rb', line 6 def pull_request @pull_request end |
#repo_full_name ⇒ Object
Returns the value of attribute repo_full_name.
4 5 6 |
# File 'lib/build_buddy/build_data.rb', line 4 def repo_full_name @repo_full_name end |
#repo_sha ⇒ Object
Returns the value of attribute repo_sha.
8 9 10 |
# File 'lib/build_buddy/build_data.rb', line 8 def repo_sha @repo_sha end |
#start_time ⇒ Object
Returns the value of attribute start_time.
11 12 13 |
# File 'lib/build_buddy/build_data.rb', line 11 def start_time @start_time end |
#termination_type ⇒ Object
:killed or :exited
9 10 11 |
# File 'lib/build_buddy/build_data.rb', line 9 def termination_type @termination_type end |