Class: Veracode::Result::Builds::Application

Inherits:
Common::Base show all
Defined in:
lib/veracode/api/builds.rb

Instance Method Summary collapse

Methods inherited from Common::Base

api_field, api_type_field, #initialize

Constructor Details

This class inherits a constructor from Veracode::Common::Base

Instance Method Details

#buildsObject



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

Returns:

  • (Boolean)


75
76
77
# File 'lib/veracode/api/builds.rb', line 75

def cots?
  @cots ||= @xml_hash.cots.to_bool
end

#custom_fieldsObject



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