Sha256: 9184cc652c1244b7455f290d353ab262637c9fa81de7d3566002ddd9a113b01d

Contents?: true

Size: 196 Bytes

Versions: 25

Compression:

Stored size: 196 Bytes

Contents

module Elastics
  class Result
    module Scope

      def get_docs
        return self if variables[:raw_result]
        respond_to?(:collection) ? collection : self
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
elastics-scopes-1.3.3 lib/elastics/result/scope.rb
elastics-scopes-1.3.2 lib/elastics/result/scope.rb
elastics-scopes-1.3.1 lib/elastics/result/scope.rb
elastics-scopes-1.3.0 lib/elastics/result/scope.rb
elastics-scopes-1.2.1 lib/elastics/result/scope.rb
elastics-scopes-1.2.0 lib/elastics/result/scope.rb
elastics-scopes-1.1.11 lib/elastics/result/scope.rb
elastics-scopes-1.1.10 lib/elastics/result/scope.rb
elastics-scopes-1.1.9 lib/elastics/result/scope.rb
elastics-scopes-1.1.8 lib/elastics/result/scope.rb
elastics-scopes-1.1.7 lib/elastics/result/scope.rb
elastics-scopes-1.1.6 lib/elastics/result/scope.rb
elastics-scopes-1.1.5 lib/elastics/result/scope.rb
elastics-scopes-1.1.4 lib/elastics/result/scope.rb
elastics-scopes-1.1.3 lib/elastics/result/scope.rb
elastics-scopes-1.1.2 lib/elastics/result/scope.rb
elastics-scopes-1.1.1 lib/elastics/result/scope.rb
elastics-scopes-1.1.0 lib/elastics/result/scope.rb
elastics-scopes-1.0.10 lib/elastics/result/scope.rb
elastics-scopes-1.0.9 lib/elastics/result/scope.rb