Sha256: 0e6b4cbf40e91c1c599471de295d7fb8187285c402828b2c848c3ef9e6863447

Contents?: true

Size: 213 Bytes

Versions: 10

Compression:

Stored size: 213 Bytes

Contents

module ActiveSearch
  class Result < Hash
    def initialize(result)
      result.to_hash.each do |k,v|
        self[k.to_s] = v unless v.nil?
      end
    end
    
    def attributes
      self
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activesearch-0.0.13 lib/activesearch/result.rb
activesearch-0.0.12 lib/activesearch/result.rb
activesearch-0.0.11 lib/activesearch/result.rb
activesearch-0.0.10 lib/activesearch/result.rb
activesearch-0.0.9 lib/activesearch/result.rb
activesearch-0.0.8 lib/activesearch/result.rb
activesearch-0.0.7 lib/activesearch/result.rb
activesearch-0.0.6 lib/activesearch/result.rb
activesearch-0.0.5 lib/activesearch/result.rb
activesearch-0.0.4 lib/activesearch/result.rb