Class: Veracode::Result::Para
- Inherits:
-
Common::Base
- Object
- Common::Base
- Veracode::Result::Para
- Defined in:
- lib/veracode/api/types.rb
Instance Method Summary collapse
-
#para ⇒ Object
xml_reader :para, :as => [ParaType].
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
#para ⇒ Object
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 |