class CloudSesame::Domain::Client

Attributes

searchable[R]

Public Class Methods

configure() { |global_config| ... } click to toggle source
# File lib/cloud_sesame/domain/client.rb, line 10
def self.configure
  yield global_config if block_given?
end
global_config() click to toggle source
# File lib/cloud_sesame/domain/client.rb, line 14
def self.global_config
  @global_config ||= Config.new
end
new(searchable) click to toggle source
# File lib/cloud_sesame/domain/client.rb, line 18
def initialize(searchable)
  @searchable = searchable
end

Public Instance Methods

config() click to toggle source
# File lib/cloud_sesame/domain/client.rb, line 22
def config
  @config ||= Config.new self.class.global_config
end

Private Instance Methods

aws_client() click to toggle source
# File lib/cloud_sesame/domain/client.rb, line 32
def aws_client
  @aws_client ||= LazyObject.new { ::Aws::CloudSearchDomain::Client.new config.to_hash }
end