Sha256: edcff82550ef9e640e9ef24ec4c05f12982fc09bb58657bcb9a322b3be41a43f

Contents?: true

Size: 334 Bytes

Versions: 5

Compression:

Stored size: 334 Bytes

Contents

require 'forwardable'

module SimpleSolrClient
  module Response
    class GenericResponse
      extend Forwardable
      def_delegators :@solr_response, :[]

      def initialize(solr_response_hash)
        @solr_response = solr_response_hash
      end

      def status
        @solr_response['status']
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_solr_client-0.2.1 lib/simple_solr_client/response/generic_response.rb
simple_solr_client-0.2.0 lib/simple_solr_client/response/generic_response.rb
simple_solr_client-0.1.2 lib/simple_solr_client/response/generic_response.rb
simple_solr_client-0.1.1 lib/simple_solr/response/generic_response.rb
simple_solr_client-0.1.0 lib/simple_solr/response/generic_response.rb