Class: CargowiseTS::AbstractResult
- Inherits:
-
Object
- Object
- CargowiseTS::AbstractResult
- 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.
Instance Method Summary collapse
-
#inspect ⇒ Object
:nodoc:.
Instance Method Details
#inspect ⇒ Object
: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 |