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:



468
469
470
# File 'lib/savon_helper/type_mappings.rb', line 468

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:



475
476
477
# File 'lib/savon_helper/type_mappings.rb', line 475

def to_savon(value)
  value
end

#type_stringString

Return the class description represented by the mapping.

Returns:



483
484
485
# File 'lib/savon_helper/type_mappings.rb', line 483

def type_string
  "UNDEFINED"
end