Class: SavonHelper::MissingMapping

Inherits:
TypeMapping show all
Defined in:
lib/savon_helper/type_mappings.rb

Overview

MissingMapping maps Savon data to itself (no conversion).

Instance Attribute Summary

Attributes inherited from TypeMapping

#description, #name

Converting collapse

Instance Method Summary collapse

Methods inherited from TypeMapping

#default_value, #initialize, #object_klass

Constructor Details

This class inherits a constructor from SavonHelper::TypeMapping

Instance Method Details

#to_native(data, interface) ⇒ Object

Convert from Savon data to itself.

Parameters:

  • data (Object)

    Source Savon data

Returns:



463
464
465
# File 'lib/savon_helper/type_mappings.rb', line 463

def to_native(data, interface)
  data
end

#to_savon(value) ⇒ Object

Convert from itself (no conversion) to Savon data.

Parameters:

  • value (Object)

    Source Ruby data

Returns:



470
471
472
# File 'lib/savon_helper/type_mappings.rb', line 470

def to_savon(value)
  value
end

#type_stringString

Return the class description represented by the mapping.

Returns:



478
479
480
# File 'lib/savon_helper/type_mappings.rb', line 478

def type_string
  "UNDEFINED"
end