Sha256: c37dda1710cadab4853d36f966335d9ff1c3ca5e91d59cc69339fbe027276d58

Contents?: true

Size: 472 Bytes

Versions: 8

Compression:

Stored size: 472 Bytes

Contents

module Tinia
  module Connection

    def self.included(klass)
      klass.send(:extend, ClassMethods)
      klass.class_eval do
        class_inheritable_accessor :cloud_search_domain
      end
    end

    module ClassMethods

      # accessor for the cloud search connection
      def cloud_search_connection
        @cloud_search_connection ||= begin
          Tinia.connection(
            self.cloud_search_domain
          )
        end
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tinia-2.3.0 lib/tinia/connection.rb
tinia-0.1.1 lib/tinia/connection.rb
tinia-0.1.0 lib/tinia/connection.rb
tinia-0.0.7 lib/tinia/connection.rb
tinia-0.0.6 lib/tinia/connection.rb
tinia-0.0.5 lib/tinia/connection.rb
tinia-0.0.4 lib/tinia/connection.rb
tinia-0.0.3 lib/tinia/connection.rb