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 Attribute Summary
Attributes inherited from TypeMapping
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
#initialize, #object_klass, #to_native, #to_savon
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.
234 235 236 |
# File 'lib/savon_helper/type_mappings.rb', line 234 def default_value "255.255.255.255" end |
#type_string ⇒ String
Return the class description represented by the mapping.
228 229 230 |
# File 'lib/savon_helper/type_mappings.rb', line 228 def type_string "IPAddress" end |