Sha256: 2204174589804b28c4e4b3146c4c64791e9244fa2f4bad9c0144621ea487e2fc

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

# for update responses
module RSolr::Ext::Response::Update
  
  include Base
  
  # converts to mash, then extends
  def self.create(hash)
    mash = hash.is_a?(Mash) ? hash : hash.to_mash
    mash.extend self
    mash
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mwmitchell-rsolr-ext-0.4.0 lib/rsolr-ext/response/update.rb
mwmitchell-rsolr-ext-0.4.1 lib/rsolr-ext/response/update.rb