// ValueForAttribute returns the value for the given attribute.
// This is a very advanced function that you should not need but in some
// very specific use cases.
ValueForAttribute returns the value for the given attribute.
This is a very advanced function that you should not need but in some
very specific use cases.
// ValueForAttribute returns the value for the given attribute . // This is a very advanced function that you should not need but in some // very specific use cases .
func (o *Hit) ValueForAttribute(name string) interface{} {
	switch name {
	case "name":
		return o.Name
	case "targetID":
		return o.TargetID
	case "targetIdentity":
		return o.TargetIdentity
	case "value":
		return o.Value
	}
	return nil
}
func ( o * Hit ) ValueForAttribute ( name string ) interface { } { switch name { case " " : return o . Name case " " : return o . TargetID case " " : return o . TargetIdentity case " " : return o . Value } return nil }
ValueForAttribute returns the value for the given attribute.
ValueForAttribute returns the value for the given attribute .