class Solr::Query::Response::Spellcheck

Attributes

response[R]

Public Class Methods

empty() click to toggle source
# File lib/solr/query/response/spellcheck.rb, line 26
def self.empty
  new({})
end
new(response) click to toggle source
# File lib/solr/query/response/spellcheck.rb, line 30
def initialize(response)
  @response = response || {}
end

Public Instance Methods

collations() click to toggle source
# File lib/solr/query/response/spellcheck.rb, line 34
def collations
  Array(response['collations']).flatten(1).in_groups_of(2).map do |_, collation|
    Collation.new(collation)
  end
end