Sha256: 7c60c41264317ad5588808afae94b1e041ccff882f227a68615a34eca8f706ad
Contents?: true
Size: 354 Bytes
Versions: 3
Compression:
Stored size: 354 Bytes
Contents
module SoapObject module Factory def using(cls, &block) @the_service = find_service(cls) block.call @the_service if block @the_service end private def find_service(cls) services[cls] = cls.new(Savon) unless services[cls] services[cls] end def services @services ||= {} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
soap-object-0.6.8 | lib/soap-object/factory.rb |
soap-object-0.6.7 | lib/soap-object/factory.rb |
soap-object-0.6.6 | lib/soap-object/factory.rb |