Sha256: b56ba280eaa1c80dc068720319a4fe760d701bc23a6ef78a8711a8e67cfd2a2e
Contents?: true
Size: 718 Bytes
Versions: 24
Compression:
Stored size: 718 Bytes
Contents
require 'cloud_sesame/domain/client_module/caching' module CloudSesame module Domain class Client include ClientModule::Caching attr_reader :searchable def self.configure yield global_config if block_given? end def self.global_config @global_config ||= Config.new end def initialize(searchable) @searchable = searchable end def config @config ||= Config.new self.class.global_config end def search(params) executor.fetch params end private def aws_client @aws_client ||= LazyObject.new { ::Aws::CloudSearchDomain::Client.new config.to_hash } end end end end
Version data entries
24 entries across 24 versions & 1 rubygems