Sha256: 9970acbbdf9bd65f17acd72cdac6c966886a105fd40dd37f7e2767227181f1c0
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
module Wor module Batchifier class Strategy def merge_strategy raise Wor::Batchifier::Exceptions::InterfaceNotImplemented.new "Class #{self.class.name} does not implement contract merge_strategy!" end def base_case {} end # When defining your own strategy for merging, you should define a new class that extends from # this class, "Strategy", and implement the method "merge_strategy" which will take care # of parsing the response of the batchified endpoint. # Should you not implement the method "merge_strategy" the exception "InterfaceNotImplemented" # will be raised to notify the developer of such issue. end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wor-batchifier-0.0.2 | lib/wor/batchifier/strategy.rb |