Module: SavonHelper
- Defined in:
- lib/savon_helper/type_mappings.rb,
lib/savon_helper/dsl.rb,
lib/savon_helper/caching_object.rb,
lib/savon_helper/mapping_object.rb,
lib/savon_helper/soap_exception.rb,
lib/savon_helper/soap_interface.rb,
lib/savon_helper/missing_type_mapping_exception.rb
Overview
Defined Under Namespace
Modules: DSL Classes: ArrayMapping, BooleanMapping, CachingObject, DatetimeMapping, EnumMapping, FloatMapping, HintMapping, IPAddressMapping, IntegerMapping, MappingObject, MissingMapping, MissingTypeMappingException, ObjectMapping, SOAPException, SOAPInterface, StringMapping, TypeMapping
Class Method Summary collapse
-
.define_missing_type_mapping(klass, ivar_name, value, mappings, interface) ⇒ Object
Define a MissingMapping for the given options.
Class Method Details
.define_missing_type_mapping(klass, ivar_name, value, mappings, interface) ⇒ Object
TODO:
Check if mappings can be derived from klass
Define a MissingMapping for the given options
490 491 492 493 494 |
# File 'lib/savon_helper/type_mappings.rb', line 490 def self.define_missing_type_mapping(klass, ivar_name, value, mappings, interface) = "No type mapping for #{klass}@#{ivar_name} = #{value}!" interface.logger.warn() mappings[ivar_name] = MissingMapping.new() end |