Sha256: 837248621173c6c6ad30ab04297bc65a65e459d12a612a5cb22de393522f379e

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

module CloudSesame
	module Domain
		module ClientModule
			module Caching
				class Base

					def initialize(client, searchable)
						@client = client
						@searchable = searchable
					end

					def fetch(params)
						raise Error::Caching, "Caching Module needs #fetch method and accepts params"
					end

					private

					def search(params)
						@client.search params
					end

				end
			end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
CloudSesame-0.6.4 lib/cloud_sesame/domain/client_module/caching/base.rb