Class: Object

Inherits:
BasicObject
Defined in:
lib/savon_helper.rb,
lib/savon_helper/caching_object.rb,
lib/savon_helper/mapping_object.rb

Mapping collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_cache_aspectsObject



81
82
83
# File 'lib/savon_helper/caching_object.rb', line 81

def self.all_cache_aspects
 Set.new()
end

.all_type_mappingsHash{Symbol => TypeMapping}

Return TypeMappings.

Returns:

  • (Hash{Symbol => TypeMapping})


166
167
168
# File 'lib/savon_helper/mapping_object.rb', line 166

def self.all_type_mappings
  {}
end

.cache_aspectsObject



73
74
75
# File 'lib/savon_helper/caching_object.rb', line 73

def self.cache_aspects
  Set.new()
end

.name_without_namespaceObject



36
37
38
# File 'lib/savon_helper.rb', line 36

def self.name_without_namespace
  name.split('::').last || ''
end

.type_mappingsHash{Symbol => TypeMapping}

Return TypeMappings specific to the class

Returns:

  • (Hash{Symbol => TypeMapping})


154
155
156
# File 'lib/savon_helper/mapping_object.rb', line 154

def self.type_mappings
  {}
end

Instance Method Details

#all_cache_aspectsObject



77
78
79
# File 'lib/savon_helper/caching_object.rb', line 77

def all_cache_aspects
  self.class.all_cache_aspects
end

#all_type_mappingsHash{Symbol => TypeMapping}

Return TypeMappings.

Returns:

  • (Hash{Symbol => TypeMapping})


160
161
162
# File 'lib/savon_helper/mapping_object.rb', line 160

def all_type_mappings
  self.class.all_type_mappings()
end

#cache_aspectsObject



69
70
71
# File 'lib/savon_helper/caching_object.rb', line 69

def cache_aspects
  self.class.cache_aspects
end

#to_savonObject

Convert to Savon data.



142
143
144
# File 'lib/savon_helper/mapping_object.rb', line 142

def to_savon
  self
end

#type_mappingsHash{Symbol => TypeMapping}

Return TypeMappings specific to the instance's class

Returns:

  • (Hash{Symbol => TypeMapping})


148
149
150
# File 'lib/savon_helper/mapping_object.rb', line 148

def type_mappings
  self.class.type_mappings
end