class RSolr::Xml::Field
Attributes
attrs[RW]
“attrs” is a hash for setting the “doc” xml attributes “value” is the text value for the node
value[RW]
“attrs” is a hash for setting the “doc” xml attributes “value” is the text value for the node
Public Class Methods
new(attrs, value)
click to toggle source
“attrs” must be a hash “value” should be something that responds to #_to_s
# File lib/rsolr/xml.rb, line 61 def initialize(attrs, value) @attrs = attrs @value = value end
Public Instance Methods
name()
click to toggle source
the value of the “name” attribute
# File lib/rsolr/xml.rb, line 67 def name @attrs[:name] end