Class: RSolr::DocumentField

Inherits:
Field
  • Object
show all
Defined in:
lib/rsolr/field.rb

Instance Attribute Summary

Attributes inherited from Field

#attrs, #source_value

Instance Method Summary collapse

Methods inherited from Field

#initialize, instance, #name

Constructor Details

This class inherits a constructor from RSolr::Field

Instance Method Details

#as_jsonObject



83
84
85
# File 'lib/rsolr/field.rb', line 83

def as_json
  value.as_json
end

#valueObject



77
78
79
80
81
# File 'lib/rsolr/field.rb', line 77

def value
  return RSolr::Document.new(source_value) if source_value.respond_to? :each_pair

  super
end