Class: Veracode::Result::Para

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

#paraObject

xml_reader :para, :as => [ParaType]



84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/veracode/api/types.rb', line 84

def para
  @paras ||= []
  if @paras.empty?
    if @xml_hash.para.class == Array
      @paras = @xml_hash.para.map do |para|
        ParaType.new(para)
      end
    else
      @paras << ParaType.new(@xml_hash.para)
    end
  end
  return @paras
end