Class: BuildBuddy::BuildData

Inherits:
Object
  • Object
show all
Defined in:
lib/build_buddy/build_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_filenameObject

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_typeObject

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_versionObject

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_timeObject

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_codeObject

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_requestObject

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_nameObject

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_shaObject

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_timeObject

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_typeObject

:killed or :exited



9
10
11
# File 'lib/build_buddy/build_data.rb', line 9

def termination_type
  @termination_type
end