Class: SavonHelper::HintMapping
- Inherits:
-
TypeMapping
- Object
- TypeMapping
- SavonHelper::HintMapping
- Defined in:
- lib/savon_helper/type_mappings.rb
Overview
HintMapping maps Savon data to Ruby objects of type klass (r/o).
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from TypeMapping
Instance Method Summary collapse
-
#initialize(klass, name = '', description = '') ⇒ HintMapping
constructor
A new instance of ObjectMapping with description for class klass.
- #object_klass ⇒ Class abstract
-
#type_string ⇒ String
Return the class description represented by the mapping.
Methods inherited from TypeMapping
#default_value, #to_native, #to_savon
Constructor Details
#initialize(klass, name = '', description = '') ⇒ HintMapping
A new instance of ObjectMapping with description for class klass.
332 333 334 335 |
# File 'lib/savon_helper/type_mappings.rb', line 332 def initialize(klass, name='', description='') super(name, description) @klass = klass end |
Instance Method Details
#object_klass ⇒ Class
This method is abstract.
Return the class represented by the mapping.
341 342 343 |
# File 'lib/savon_helper/type_mappings.rb', line 341 def object_klass @klass end |
#type_string ⇒ String
Return the class description represented by the mapping.
347 348 349 |
# File 'lib/savon_helper/type_mappings.rb', line 347 def type_string "HINT<#{@klass.name_without_namespace}>" end |