Class: SavonHelper::IPAddressMapping

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

Overview

Note:

Currently IPAddressMapping only does a from/to String mapping. The IP Address is not parsed in any way!

IPAddressMapping maps Savon data to Ruby IP Address String.

Instance Attribute Summary

Attributes inherited from TypeMapping

#description, #name

Instance Method Summary collapse

Methods inherited from StringMapping

#object_klass, #to_native, #to_savon

Methods inherited from TypeMapping

#initialize, #object_klass, #to_native, #to_savon

Constructor Details

This class inherits a constructor from SavonHelper::TypeMapping

Instance Method Details

#default_valueObject

This method is abstract.

Return the default value the mapping.

Returns:



234
235
236
# File 'lib/savon_helper/type_mappings.rb', line 234

def default_value
  "255.255.255.255"
end

#type_stringString

Return the class description represented by the mapping.

Returns:



228
229
230
# File 'lib/savon_helper/type_mappings.rb', line 228

def type_string
  "IPAddress"
end