Class: Valkyrie::Persistence::Solr::ORMConverter::Property
- Inherits:
-
Object
- Object
- Valkyrie::Persistence::Solr::ORMConverter::Property
- Defined in:
- lib/valkyrie/persistence/solr/orm_converter.rb
Overview
Class modeling a key/value pair within a Solr Document
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value, document) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(key, value, document) ⇒ Property
Returns a new instance of Property.
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
#document ⇒ Object (readonly)
Returns the value of attribute document.
106 107 108 |
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 106 def document @document end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
106 107 108 |
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 106 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
106 107 108 |
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 106 def value @value end |