Class: WsdlMapper::Parsing::Logging::LogMsg
- Inherits:
-
Object
- Object
- WsdlMapper::Parsing::Logging::LogMsg
- Defined in:
- lib/wsdl_mapper/parsing/logging.rb
Instance Method Summary collapse
-
#initialize(node, source, msg = '') ⇒ LogMsg
constructor
A new instance of LogMsg.
- #to_s ⇒ Object
Constructor Details
#initialize(node, source, msg = '') ⇒ LogMsg
Returns a new instance of LogMsg.
8 9 10 11 12 13 |
# File 'lib/wsdl_mapper/parsing/logging.rb', line 8 def initialize(node, source, msg = '') @node = node @source = source @node_name = node && node.name @msg = msg end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/wsdl_mapper/parsing/logging.rb', line 15 def to_s "#{@msg}: #{@node} - #{@source.class.name}" end |