Class: Valkyrie::Persistence::Solr::ModelConverter::Property
- Inherits:
-
Object
- Object
- Valkyrie::Persistence::Solr::ModelConverter::Property
- Defined in:
- lib/valkyrie/persistence/solr/model_converter.rb
Overview
A container resource for holding a ‘key`, `value, and `scope` of a value in a resource together for casting.
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value, scope = []) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(key, value, scope = []) ⇒ Property
Returns a new instance of Property.
149 150 151 152 153 |
# File 'lib/valkyrie/persistence/solr/model_converter.rb', line 149 def initialize(key, value, scope = []) @key = key @value = value @scope = scope end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
143 144 145 |
# File 'lib/valkyrie/persistence/solr/model_converter.rb', line 143 def key @key end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
143 144 145 |
# File 'lib/valkyrie/persistence/solr/model_converter.rb', line 143 def scope @scope end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
143 144 145 |
# File 'lib/valkyrie/persistence/solr/model_converter.rb', line 143 def value @value end |