Class: Veracode::Result::Builds::Application
Instance Method Summary
collapse
api_field, api_type_field, #initialize
Instance Method Details
#builds ⇒ Object
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# File 'lib/veracode/api/builds.rb', line 79
def builds
@builds ||=
if @xml_hash.include?('build')
if @xml_hash.build.class == Array
@builds = @xml_hash.build.map do |build|
Build.new(build)
end
else
@builds = [Build.new(@xml_hash.build)]
end
else
[]
end
end
|
#cots? ⇒ Boolean
75
76
77
|
# File 'lib/veracode/api/builds.rb', line 75
def cots?
@cots ||= @xml_hash.cots.to_bool
end
|
#custom_fields ⇒ Object
68
69
70
71
72
73
|
# File 'lib/veracode/api/builds.rb', line 68
def custom_fields
@custom_fields ||=
@xml_hash.customfield.map do |customfield|
CustomField.new(customfield)
end
end
|