Class: Veracode::Result::CallStacks
- Inherits:
-
Common::Base
- Object
- Common::Base
- Veracode::Result::CallStacks
- Defined in:
- lib/veracode/api/call_stack.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
#callstack ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/veracode/api/call_stack.rb', line 41 def callstack @callstacks ||= [] begin if @callstacks.empty? if @xml_hash.callstack.class == Array @callstacks = @xml_hash.callstack.map do |item| CallStack.new(item) end else @callstacks << CallStack.new(@xml_hash.callstack) end end rescue NoMethodError end return @callstacks end |