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 Method Summary collapse

Methods inherited from StringMapping

#object_klass, #to_native, #to_savon

Methods inherited from TypeMapping

#description, #initialize, #object_klass, #to_native, #to_savon, #warn_unparseable_data

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:



247
248
249
# File 'lib/savon_helper/type_mappings.rb', line 247

def default_value
  "255.255.255.255"
end

#type_stringString

Return the class description represented by the mapping.

Returns:



241
242
243
# File 'lib/savon_helper/type_mappings.rb', line 241

def type_string
  "IPAddress"
end