Class: Valkyrie::Persistence::Solr::ORMConverter::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/valkyrie/persistence/solr/orm_converter.rb

Overview

Class modeling a key/value pair within a Solr Document

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value, document) ⇒ Property

Returns a new instance of Property.

Parameters:

  • key (String)
  • value (String)
  • document (Hash)


111
112
113
114
115
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 111

def initialize(key, value, document)
  @key = key
  @value = value
  @document = document
end

Instance Attribute Details

#documentObject (readonly)

Returns the value of attribute document.



106
107
108
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 106

def document
  @document
end

#keyObject (readonly)

Returns the value of attribute key.



106
107
108
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 106

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



106
107
108
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 106

def value
  @value
end