Class: Veracode::Result::ParaType

Inherits:
Common::Base show all
Defined in:
lib/veracode/api/types.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

#bulletitemObject



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/veracode/api/types.rb', line 60

def bulletitem
  @bulletitems ||= []
  begin
    if @bulletitems.empty?
      if @xml_hash.bulletitem.class == Array
        @bulletitems = @xml_hash.bulletitem.map do |item|
          BulletType.new(item)
        end
      else
        @bulletitems << BulletType.new(@xml_hash.bulletitem)
      end
    end
  rescue NoMethodError
  end
  return @bulletitems
end