Class: CargowiseTS::AbstractResult

Inherits:
Object
  • Object
show all
Defined in:
lib/cargowise-ts/abstract_result.rb

Overview

Superclass of all objects built to contain results from the API. Not much to see here, mostly common helper methods for parsing values out of the XML response.

Direct Known Subclasses

Consol, Document, Invoice, MiniOrder, Order, Packing, Shipment

Instance Method Summary collapse

Instance Method Details

#inspectObject

:nodoc:



11
12
13
14
15
16
# File 'lib/cargowise-ts/abstract_result.rb', line 11

def inspect
  str = "<#{self.class}: "
  str << inspectable_vars.map { |v| "#{v.to_s.tr('@','')}: #{instance_variable_get(v)}" }.join(" ")
  str << ">"
  str
end