Class: SavonHelper::IPAddressMapping
- Inherits:
-
StringMapping
- Object
- TypeMapping
- StringMapping
- SavonHelper::IPAddressMapping
- 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
- #default_value ⇒ Object abstract
-
#type_string ⇒ String
Return the class description represented by the mapping.
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_value ⇒ Object
This method is abstract.
Return the default value the mapping.
247 248 249 |
# File 'lib/savon_helper/type_mappings.rb', line 247 def default_value "255.255.255.255" end |
#type_string ⇒ String
Return the class description represented by the mapping.
241 242 243 |
# File 'lib/savon_helper/type_mappings.rb', line 241 def type_string "IPAddress" end |